ref: a34168558b7c280ce10c1cfe7c28c09227dc8ca3
parent: 5cc88f7df16cb024ce7ff2decfba627c64ed3e19
author: Paul Brossier <piem@piem.org>
date: Mon Dec 30 14:43:25 EST 2013
wscript: do not pass -Wextra to msvc
--- a/wscript
+++ b/wscript
@@ -85,12 +85,15 @@
ctx.load('waf_unit_test')
ctx.load('gnu_dirs')
- ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
-
target_platform = Options.platform
if ctx.options.target_platform:
target_platform = ctx.options.target_platform
ctx.env['DEST_OS'] = target_platform
+
+ if 'CL.exe' not in ctx.env.CC[0]:
+ ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
+ else:
+ ctx.env.CFLAGS += ['-Wall']
if target_platform not in ['win32', 'win64']:
ctx.env.CFLAGS += ['-fPIC']
--
⑨