diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2020-07-01 22:00:51 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2020-07-02 08:19:05 +0000 |
commit | 8a258d2a858fe5424a4bf63ae7a3abdcc0d4e5f9 (patch) | |
tree | 998eed71e2bf58e8dd5305b389584bbf1bf61e69 | |
parent | a49f2afef9c96d04bdaa2e7ba23942efb02eef0e (diff) | |
download | qbs-8a258d2a858fe5424a4bf63ae7a3abdcc0d4e5f9.tar.gz |
baremetal: Add support for c99 language version for SDCC toolchain
Change-Id: I7159e58fb15c7d8c131664ec0a4ee1c2deecc5a9
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
-rw-r--r-- | share/qbs/modules/cpp/sdcc.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/sdcc.js b/share/qbs/modules/cpp/sdcc.js index 4243e67bd..9c7001601 100644 --- a/share/qbs/modules/cpp/sdcc.js +++ b/share/qbs/modules/cpp/sdcc.js @@ -393,13 +393,16 @@ function compilerFlags(project, product, input, outputs, explicitlyDependsOn) { // C language version flags. if (tag === "c") { - var knownValues = ["c11", "c89"]; + var knownValues = ["c11", "c99", "c89"]; var cLanguageVersion = Cpp.languageVersion( input.cpp.cLanguageVersion, knownValues, "C"); switch (cLanguageVersion) { case "c89": args.push("--std-c89"); break; + case "c99": + args.push("--std-c99"); + break; case "c11": args.push("--std-c11"); break; |