Details
-
Task
-
Resolution: Done
-
P2: Important
-
1.9.1
-
None
-
20cb71daf6814a1bbb3008e4fa239d935ac20a55
Description
My use case
Using qbs and a gcc toolchain for an embedded arm
device.
I need to pass --specs=nano.specs to g++ when invoking the linker.
If I put it in cpp.linkerFlags it does not work as qbs will escape it with -Wl.
I can put it in cpp.driverFlags, but then it gets passed to every call to g++ which is useless and generates warning when using Clang Static Analyzer:
clang.exe: warning: argument unused during compilation: '–specs=nano.specs'
What to do
Add something like cpp.linkerDriverFlags with the semantics "flags to pass only when linking using the compiler binary".
See also
Passing unescaped flags to the linker in the QBS mailing list archives.