diff options
| author | Jake Petroules <jake.petroules@petroules.com> | 2015-07-21 13:13:06 -0700 |
|---|---|---|
| committer | Jake Petroules <jake.petroules@petroules.com> | 2015-07-22 13:24:27 +0000 |
| commit | f697752bd50575f7f7f837047f5a45896f19826c (patch) | |
| tree | ac542d0134d2c248324a82aa791d41ab0de9936b | |
| parent | d6e5db9d8f3771023465e13757e35fc752d7126c (diff) | |
| download | qbs-f697752bd50575f7f7f837047f5a45896f19826c.tar.gz | |
Be explicit about passing -O0.
Generally in Qbs, undefined means to use the underlying tool's default,
while an explicit value will pass a flag even if it is already default.
Change-Id: I847d56f5e2abede6d49467e0bb2393958d9643e1
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
| -rw-r--r-- | share/qbs/modules/cpp/gcc.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/gcc.js b/share/qbs/modules/cpp/gcc.js index eb296922d..f99e60e37 100644 --- a/share/qbs/modules/cpp/gcc.js +++ b/share/qbs/modules/cpp/gcc.js @@ -150,6 +150,8 @@ function configFlags(config) { args.push('-O2'); if (opt === 'small') args.push('-Os'); + if (opt === 'none') + args.push('-O0'); var warnings = ModUtils.moduleProperty(config, "warningLevel") if (warnings === 'none') |
