aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-03 17:56:44 +0000
committerDavid Robillard <d@drobilla.net>2012-08-03 17:56:44 +0000
commit97a1c3c55874ef48ea591146ee16fdb0c76a730f (patch)
treee824cae8e298db63fead08744fa10cd3bb351400 /wscript
parent0994283a7d427b0554398b912360312b621de8ee (diff)
downloadlv2-97a1c3c55874ef48ea591146ee16fdb0c76a730f.tar.xz
Fix compilation with MSVC.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index 18381a9..9254b95 100644
--- a/wscript
+++ b/wscript
@@ -54,7 +54,10 @@ def configure(conf):
autowaf.configure(conf)
autowaf.set_recursive()
- conf.env.append_unique('CFLAGS', '-std=c99')
+ if conf.env['MSVC_COMPILER']:
+ conf.env.append_unique('CFLAGS', ['-TP', '-MD'])
+ else:
+ conf.env.append_unique('CFLAGS', '-std=c99')
conf.env['BUILD_TESTS'] = Options.options.build_tests
conf.env['BUILD_PLUGINS'] = not Options.options.no_plugins