From a34168558b7c280ce10c1cfe7c28c09227dc8ca3 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 30 Dec 2013 19:43:25 -0400 Subject: [PATCH] wscript: do not pass -Wextra to msvc --- wscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index c2a074d8..1f54a43f 100644 --- a/wscript +++ b/wscript @@ -85,13 +85,16 @@ def configure(ctx): 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'] else: -- 2.11.0