Ninja: Fail to build static libraries for ar-gcc based ARs
Configuration:
- Cross-compilation
- Ninja
- Gcc-like compiler
- Gcc-like AR
- Windows environment
Some ar-gcc based AR programs are picky and only allow RSP files with the format of one file per line.
This is archived in Ninja by using the $in_newline
instruction. However by default, on a Windows environment with a Gcc-like compiler, the generated Ninja always uses $in
. Which causes the RSP to not be recognized by the AR command, and the build to fail.
There should be a way that allow to specify the RSP format. This would allow more flexibility for those AR programs.