Issue about armClang compiler

HI, Experts,
I am using TI armClang compiler the version is ti-cgt-armllvm_1.3.0.LTS.
I am facing a issue that the linker report a error that file name or extension is too long. Then I am checking the rules.ninja, I found *.rsp file has not newline and I think this is the reason about linker error.
MCU1_0.rsp (40.2 KB)
And then I found rules.ninja which generate by CMake has something wrong:
1.rspfile_content = $in $LINK_PATH $LINK_LIBRARIES
If parameter $in change to $in_newline, *.rsp file will one obj files one line.
2.command = cmd.exe /C “$PRE_LINK && C:\ti\ti-cgt-armllvm_1.3.0.LTS_win\bin\tiarmclang.exe $FLAGS $LINK_FLAGS @$RSP_FILE -o $TARGET_FILE && $POST_BUILD”
If parameter @$RSP_FILE change to $RSP_FILE, pass to linker is *.rsp file not *.rsp file content expansion.
So how can I control CMake to generate correct rules.ninja?
Regards,
Da

rules.ninja (2.8 KB)

Duplicate of TI_Arm_Clang_Compiler_1.3.0 not passing initial compiler test

Thanks for your reply.
TI_Arm_Clang_Compiler_1.3.0 passing initial compiler test on my end, this is compiler test log.


I think the reason is the TI ARM Clang compiler expansion the rsp file content and over windows string limits(max length is 8191), causes the linker not to get all obj info. If I try to modify the rules.ninja content it will works normally.
rules.ninja (2.9 KB)
rules_modified.ninja (2.9 KB)
So could you please Give some suggestions to me?
Regards,
Da

And I also found that it should be caused by this file.



Regards,
Da