On 22-Oct-14 19:40, Railway Coder wrote: > I use qbs for building my code for an embedded system. > Compiler is set in Qt Creator as Kit for Bare Metal development. > > If I set compiler flags like this: [...] > I get unwanted flags in the output: [...]
-pipe is passed to gcc unconditionally. We assumed that every gcc can cope with it. Do we need an option to turn it off? -fvisibility=default can be turned off by setting cpp.visibility to undefined. -x c++ should not be added if your source files have a standard C++ file extension. Which Qt Creator version is this? -Wextra is controllable via cpp.warningLevel -Wl,--unresolved-symbols=ignore-in-shared-libs is controllable via cpp.allowUnresolvedSymbols -g cpp.debugInformation: false > How can I prevent qbs from adding flags which are not specified by me? There is no "don't mess around with compiler flags" option. Specify what you can with cpp properties, and only add things to cpp.cxxFlags if you really need to. BR, Joerg _______________________________________________ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs