diff options
author | David Robillard <d@drobilla.net> | 2012-08-08 21:09:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-08 21:09:18 +0000 |
commit | d3503a4bb690b10d95c2ce8ee3dfeffb635b777b (patch) | |
tree | aa2ee71045c27385684c2f06b27d074804db607e /autowaf.py | |
parent | bddcb5a244b776e40a376a5130cc35bf3ad19d85 (diff) | |
download | autowaf-d3503a4bb690b10d95c2ce8ee3dfeffb635b777b.tar.gz autowaf-d3503a4bb690b10d95c2ce8ee3dfeffb635b777b.tar.bz2 autowaf-d3503a4bb690b10d95c2ce8ee3dfeffb635b777b.zip |
Add autowaf.set_c99_mode().
git-svn-id: http://svn.drobilla.net/autowaf@74 e2e4594f-ea7b-45dc-bc5a-5f5301e603aa
Diffstat (limited to 'autowaf.py')
-rw-r--r-- | autowaf.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -236,6 +236,13 @@ def configure(conf): g_step = 2 +def set_c99_mode(conf): + if conf.env.MSVC_COMPILER: + # MSVC has no hope or desire to compile C99, just compile as C++ + conf.env.append_unique('CFLAGS', ['-TP', '-MD']) + else: + conf.env.append_unique('CFLAGS', '-std=c99') + def set_local_lib(conf, name, has_objects): var_name = 'HAVE_' + nameify(name.upper()) define(conf, var_name, 1) |