diff options
author | David Robillard <d@drobilla.net> | 2020-11-11 17:44:24 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-11 22:01:05 +0100 |
commit | 86e4ecb99fa626a389cee96fb034c8c5b1c0121b (patch) | |
tree | 861ac8671a7726edf988ed8693544c0e3a3fe9ff /wscript | |
parent | 37727929bb07aec91038a9e4d14dc5a9290a9df5 (diff) | |
download | zix-86e4ecb99fa626a389cee96fb034c8c5b1c0121b.tar.gz zix-86e4ecb99fa626a389cee96fb034c8c5b1c0121b.tar.bz2 zix-86e4ecb99fa626a389cee96fb034c8c5b1c0121b.zip |
Use C11 if possible
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,7 +36,9 @@ def options(ctx): def configure(conf): conf.load('compiler_c', cache=True) conf.load('autowaf', cache=True) - autowaf.set_c_lang(conf, 'c99') + + if not autowaf.set_c_lang(conf, 'c11', mandatory=False): + autowaf.set_c_lang(conf, 'c99') conf.env.update({ 'BUILD_BENCH': Options.options.bench, |