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?
rules.ninja (2.8 KB)