[Qbs] Linker Flags auto escaping troubles
Timur Kristóf
timur.kristof at gmail.com
Tue Jul 4 16:40:54 CEST 2017
Hi Benjamin,
The solution is described here:
http://lists.qt-project.org/pipermail/qbs/2017-May/001735.html
Short answer: try driverFlags instead of linkerFlags.
This question comes up quite often, it might be worth to put it into a
FAQ or something.
Hope this helps,
Timur
On Tue, 2017-07-04 at 10:37 -0400, Benjamin B (BBenj) wrote:
> Hello,
>
> I run into some troubles with the auto-escaping feature of
> cpp.linkerFlag. I have a project with some linker flags, like that
> (just some of them):
>
> cpp.linkerFlags:[
> "-gdwarf-2",
> "-mcpu=cortex-m0plus",
> "-mthumb"
>
> And while previously (when the auto escaping was not forced) the
> resulting linker command (part of it) was:
>
> arm-none-eabi-g++ -gdwarf-2 -mcpu=cortex-m0plus -mthumb
>
> It is now escaped:
>
> arm-none-eabi-g++ -Wl,-gdwarf-2,-mcpu=cortex-m0plus,-mthumb
>
> And the linker doesn't like it (error "arm-none-eabi/bin/ld:
> unrecognised emulation mode: thumb").
>
> How to not have these flags escaped? Some property I missed?
>
>
> I am using Qt Creator 4.3.1 (Qbs 1.8.1).
>
>
> Thank you,
>
> Best regards,
> Benjamin
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
More information about the Qbs
mailing list