summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-01 19:18:33 +0100
committerDavid Robillard <d@drobilla.net>2021-01-01 19:19:03 +0100
commitb600c928b221a001faeab7bd92786d0b25714bc8 (patch)
treece7bb447c67bb4afb77cfeeff51b8f96fe0143e4
parentcc37724b9bfa889baebd8cb10f38b8c7cab83e37 (diff)
downloadautowaf-master.tar.gz
autowaf-master.tar.bz2
autowaf-master.zip
Avoid trying to use both C99 and C11 on the same command lineHEADmaster
-rw-r--r--extras/autowaf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py
index f932e41..662f9b7 100644
--- a/extras/autowaf.py
+++ b/extras/autowaf.py
@@ -689,7 +689,7 @@ def set_c_lang(conf, lang, **kwargs):
# MSVC has no hope or desire to compile C99, just compile as C++
conf.env.append_unique('CFLAGS', ['/TP'])
return True
- else:
+ elif not (lang == 'c99' and '-std=c11' in conf.env.CFLAGS):
flag = '-std=%s' % lang
if conf.check(features='c cstlib',
cflags=flag_check_flags(conf, conf.env.CFLAGS) + [flag],