Re: [Qbs] qbs ignores the 'manual' cpp.linkerMode behavior

2017-10-10 Thread Denis Shienkov
Ok, many thanks, guys. :) 10.10.2017 10:21, Jake Petroules пишет: Yes, I think your solution seems reasonable. It's possible we might want a similar cpp.assemblerMode option as well, but I'm not sure. ___ Qbs mailing list Qbs@qt-project.org http://

Re: [Qbs] qbs ignores the 'manual' cpp.linkerMode behavior

2017-10-10 Thread Jake Petroules
Yes, I think your solution seems reasonable. It's possible we might want a similar cpp.assemblerMode option as well, but I'm not sure. > On Oct 10, 2017, at 9:20 AM, Denis Shienkov wrote: > > Hmm, how, then, about the smart *assembler* options? > > For example, I have an assembler files *.s wh

Re: [Qbs] qbs ignores the 'manual' cpp.linkerMode behavior

2017-10-10 Thread Denis Shienkov
Hmm, how, then, about the smart *assembler* options? For example, I have an assembler files *.s which contains both asm-code and c-code. It compiles before in Atmel Studio, using the "avr-gcc -x assembler-with-cpp" option. But, in QBS it fails, because QBS launch the 'avr-as' instead of 'avr-g

Re: [Qbs] qbs ignores the 'manual' cpp.linkerMode behavior

2017-10-09 Thread Jake Petroules
Indeed it has, and your advice is correct. This is probably a good candidate for our FAQ. I've created a task for it: https://bugreports.qt.io/browse/QBS-1213 > On Oct 9, 2017, at 10:40 PM, timur.kris...@gmail.com wrote: > > Hi Denis, > > This issue has been asked several times. > The short an

Re: [Qbs] qbs ignores the 'manual' cpp.linkerMode behavior

2017-10-09 Thread timur . kristof
Hi Denis, This issue has been asked several times. The short answer is this: put the real linker flags without -Wl into linkerFlags and put the other ones into driverFlags. linkerName and linkerMode are uneeded (as far as I know). Here is an example of how I did it: https://github.com/Venemo/efm

[Qbs] qbs ignores the 'manual' cpp.linkerMode behavior

2017-10-09 Thread Denis Shienkov
Hi all, I use the AVR-GCC compiler, and I need to use following command line: "-nostartfiles -nodefaultlibs -nostdlib -Wl,-Map="$(OutputFileName).map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mrelax -Wl,-section-start=.text=0x1f400 -Wl,-section-start=.ExtReset=0x1e000 -Wl,-se