aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-19 06:16:11 +0000
committerDavid Robillard <d@drobilla.net>2012-02-19 06:16:11 +0000
commitc69ce6e891824fc64022a3615542fc30edc89cd7 (patch)
tree674cc47ae5860019c5b5d50a60cbf1e8dc3274e8
parenta01b28df576252495296368ce5e6100f89517134 (diff)
downloadlv2-c69ce6e891824fc64022a3615542fc30edc89cd7.tar.xz
Fix compilation of tests.
-rw-r--r--ext.wscript4
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)