diff options
author | David Robillard <d@drobilla.net> | 2020-11-12 20:05:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-12 20:05:49 +0100 |
commit | beed84b63136603600528c0f48bcf93f6cb51de4 (patch) | |
tree | bd2ac711b6a812c02c4bceef7254bd64d7ec01d3 /wscript | |
parent | a815f33ec3de9a145a5846e46e6dd2f052dbfd7d (diff) | |
download | serd-beed84b63136603600528c0f48bcf93f6cb51de4.tar.gz serd-beed84b63136603600528c0f48bcf93f6cb51de4.tar.bz2 serd-beed84b63136603600528c0f48bcf93f6cb51de4.zip |
Use C11 if possible
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -42,7 +42,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 |