[QBS] Support for GNU standards

Petroules Jake Jake.Petroules at theqtcompany.com
Thu Apr 14 00:46:43 CEST 2016

Unrecognized options just pass through. So passing "gnu99" should already work.

On Apr 13, 2016, at 2:03 PM, Andrzej Telszewski <atelszewski at gmail.com<mailto:atelszewski at gmail.com>> wrote:


From: /usr/share/qtcreator/qbs/share/qbs/modules/cpp/CppModule.qbs
I see that the following C/C++ standards are supported:

name: "cLanguageVersion"
allowedValues: ["c89", "c99", "c11"]

name: "cxxLanguageVersion"
allowedValues: ["c++98", "c++11", "c++14"]

What about the GUN variants, like "gnu99"?
For the moment I'm using cpp.commonCompilerFlags to specify the standard, but I wonder if the GNU variants are going to be supported through cLanguageVersion/cxxLanguageVersion ?

Best regards,
Andrzej Telszewski
QBS mailing list
QBS at qt-project.org<mailto:QBS at qt-project.org>

Jake Petroules - jake.petroules at theqtcompany.com<mailto:jake.petroules at theqtcompany.com>
Consulting Services Engineer - The Qt Company
Qbs build system evangelist - qbs.io<http://qbs.io>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20160413/8f1082f5/attachment.html>

More information about the Qbs mailing list