diff options
author | David Robillard <d@drobilla.net> | 2020-07-07 22:07:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 68b30967872915b93c600e353d2fd6d5fb4987c6 (patch) | |
tree | 8ee713219de2a4ff518450eb50690291eede0fd8 /wscript | |
parent | e56e7291095bc9ba2368054601297c2cc65cdf90 (diff) | |
download | serd-68b30967872915b93c600e353d2fd6d5fb4987c6.tar.gz serd-68b30967872915b93c600e353d2fd6d5fb4987c6.tar.bz2 serd-68b30967872915b93c600e353d2fd6d5fb4987c6.zip |
Use C11 if possible
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -44,7 +44,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') if Options.options.strict: # Check for programs used by lint target |