Ninja generator RSP handling on Windows

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Ninja generator RSP handling on Windows




We have a cross-compilation toolchain we’re using on Windows with Ninja (and Visual Studio) that is primarily built upon Clang, however our “-ar” tool is built expecting RSP files with line break delimiters. We notice that the Ninja generator explicitly switches to the space based RSP format when built _WIN32 and the compiler id is GNU or Clang and not simulating MSVC.


Currently as a workaround, our toolchain file is setting the ar to a script that modifies RSP files given on the command line and then passes things along to the actual tool, but we’re wondering if there’s a better way.






Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: