summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
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,