From b600c928b221a001faeab7bd92786d0b25714bc8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 1 Jan 2021 19:18:33 +0100 Subject: Avoid trying to use both C99 and C11 on the same command line --- extras/autowaf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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], -- cgit v1.2.1