summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-11 17:44:24 +0100
committerDavid Robillard <d@drobilla.net>2020-11-11 22:01:05 +0100
commit86e4ecb99fa626a389cee96fb034c8c5b1c0121b (patch)
tree861ac8671a7726edf988ed8693544c0e3a3fe9ff /wscript
parent37727929bb07aec91038a9e4d14dc5a9290a9df5 (diff)
downloadzix-86e4ecb99fa626a389cee96fb034c8c5b1c0121b.tar.gz
zix-86e4ecb99fa626a389cee96fb034c8c5b1c0121b.tar.bz2
zix-86e4ecb99fa626a389cee96fb034c8c5b1c0121b.zip
Use C11 if possible
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript b/wscript
index 1ae541c..ab2f639 100644
--- a/wscript
+++ b/wscript
@@ -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,