From b0353ab5fa8ae008b205f4a726530618a89f8938 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 1 Oct 2017 00:47:14 +0200 Subject: [PATCH] wscript: try compiling with msvc 10 --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'] -- 2.11.0