From c69ce6e891824fc64022a3615542fc30edc89cd7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Feb 2012 06:16:11 +0000 Subject: Fix compilation of tests. --- ext.wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext.wscript') 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) -- cgit v1.2.1