Tool-specific response file generation
Builds break for QNX with quoted strings in response files.
- CMake automatically generates response files for long command lines which hit the OS specific maxmimum command line length
- Under certain conditions the pathes inside the response files are quoted
- The QNX 7.0 and QNX 7.1 linkers do not understand the quoting and the build fails
- Presumably the problem exists since CMake 3.23
- Most likely this behavior has been introduced with !6714 (merged)
The issue can be triggered with very long command lines (to bring CMake to write response files) and use target or output names which contain a hyphen (-
) so that CMake quotes the strings in the response files.
A simple project to reproduce the issue can be found in this github repo.
!6714 (merged) fixed a problem with another linker. It seems that the exact format and handling of response file is very toolchain specific - especially in the embedded area. #20070 (closed) also mentions a case where the maximum line length of entries in the response file is hit. :-(
Any chance to have a more toolchain specific handling of response files?
Edited by Brad King