From: Paul Brossier Date: Sat, 30 Sep 2017 22:47:14 +0000 (+0200) Subject: wscript: try compiling with msvc 10 X-Git-Tag: 0.4.6~9^2~4 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=b0353ab5fa8ae008b205f4a726530618a89f8938;p=aubio.git wscript: try compiling with msvc 10 --- diff --git a/wscript b/wscript index 20ba04f4..2822e5dd 100644 --- a/wscript +++ b/wscript @@ -148,7 +148,10 @@ def configure(ctx): ctx.env.prepend_value('CFLAGS', ['-g', '-Wall', '-Wextra']) else: # enable debug symbols - ctx.env.CFLAGS += ['/Z7', '/FS'] + ctx.env.CFLAGS += ['/Z7'] + # /FS flag available in msvc >= 12 (2013) + if 'MSVC_VERSION' in ctx.env and ctx.env.MSVC_VERSION >= 12: + ctx.env.CFLAGS += ['/FS'] ctx.env.LINKFLAGS += ['/DEBUG', '/INCREMENTAL:NO'] # configure warnings ctx.env.CFLAGS += ['/W4', '/D_CRT_SECURE_NO_WARNINGS']