[Qbs] Passing unescaped flags to the linker

2017-10-31 Thread Benjamin TERRIER
Hi, I am experimenting with qbs and a gcc toolchain for an embedded arm device. Is there a way to pass unescaped flags to g++ when invoking the linker ? For instance I need to pass "--specs=nano.specs" to g++. If I put it in cpp.linkerFlags it does not work as qbs will escape it with "-Wl". I can

Re: [Qbs] Passing unescaped flags to the linker

2017-11-01 Thread Christian Kandeler
On Tue, 31 Oct 2017 15:59:47 +0100 Benjamin TERRIER wrote: > I am experimenting with qbs and a gcc toolchain for an embedded arm > device. Is there a way > to pass unescaped flags to g++ when invoking the linker ? > > For instance I need to pass "--specs=nano.specs" to g++. If I put it > in cpp.

Re: [Qbs] Passing unescaped flags to the linker

2017-11-02 Thread Benjamin TERRIER
2017-11-01 11:09 GMT+01:00 Christian Kandeler : > > Yes, that is a bit of a problem. We really need cpp.linkerDriverFlags with > the semantics "flags to pass only when linking using the compiler binary". > The need for that has been debated in the past, but I think the case is > pretty clear now.

Re: [Qbs] Passing unescaped flags to the linker

2017-11-02 Thread Timur Kristóf
@Christian: >> Yes, that is a bit of a problem. We really need cpp.linkerDriverFlags with >> the semantics "flags to pass only when linking using the compiler binary". >> The need for that has been debated in the past, but I think the case is >> pretty clear now. Could you please create a task for

Re: [Qbs] Passing unescaped flags to the linker

2017-11-02 Thread Christian Kandeler
On Thu, 2 Nov 2017 11:19:11 +0100 Timur Kristóf wrote: > @Christian: > > >> Yes, that is a bit of a problem. We really need cpp.linkerDriverFlags with > >> the semantics "flags to pass only when linking using the compiler binary". > >> The need for that has been debated in the past, but I think

Re: [Qbs] Passing unescaped flags to the linker

2017-11-02 Thread Benjamin TERRIER
2017-11-02 11:19 GMT+01:00 Timur Kristóf : >> For instance I need to pass "--specs=nano.specs" to g++. 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 get passed >> to every call to g++ which is useless > > Thos

Re: [Qbs] Passing unescaped flags to the linker

2017-11-02 Thread Timur Kristóf
Hi, > I use the latest versions (Qt Creator 4.4.1 and QBS 1.9.1) available on > Windows. > I just configured a Kit with my ARM toolchain, created a minimal qbs > project that compile > and run the static analyzer. What I did was to set up scan-build as a compiler wrapper in my qbs file, so arm-n

Re: [Qbs] Passing unescaped flags to the linker

2017-11-03 Thread Christian Gagneraud
On 2 November 2017 at 23:50, Timur Kristóf wrote: > Hi, > >> I use the latest versions (Qt Creator 4.4.1 and QBS 1.9.1) available on >> Windows. >> I just configured a Kit with my ARM toolchain, created a minimal qbs >> project that compile >> and run the static analyzer. > > What I did was to se