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 > [email protected] > http://lists.qt-project.org/mailman/listinfo/qbs _______________________________________________ Qbs mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qbs
