shithub: aubio

Download patch

ref: b0353ab5fa8ae008b205f4a726530618a89f8938
parent: bf6df1c31673cb9001144836961c0e819f99859d
author: Paul Brossier <piem@piem.org>
date: Sat Sep 30 20:47:14 EDT 2017

wscript: try compiling with msvc 10

--- a/wscript
+++ b/wscript
@@ -148,7 +148,10 @@
         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']