diff options
author | David Robillard <d@drobilla.net> | 2012-02-19 06:16:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-19 06:16:11 +0000 |
commit | c69ce6e891824fc64022a3615542fc30edc89cd7 (patch) | |
tree | 674cc47ae5860019c5b5d50a60cbf1e8dc3274e8 /ext.wscript | |
parent | a01b28df576252495296368ce5e6100f89517134 (diff) | |
download | lv2-c69ce6e891824fc64022a3615542fc30edc89cd7.tar.xz |
Fix compilation of tests.
Diffstat (limited to 'ext.wscript')
-rw-r--r-- | ext.wscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext.wscript b/ext.wscript index d7b7353..66b209d 100644 --- a/ext.wscript +++ b/ext.wscript @@ -107,6 +107,10 @@ def configure(conf): # Check for gcov library (for test coverage) if conf.env['BUILD_TESTS'] and not conf.is_defined('HAVE_GCOV'): + if conf.env['MSVC_COMPILER']: + conf.env.append_unique('CFLAGS', ['-TP', '-MD']) + else: + conf.env.append_unique('CFLAGS', '-std=c99') conf.check_cc(lib='gcov', define_name='HAVE_GCOV', mandatory=False) autowaf.configure(conf) |