From ae36035d47b5e93be7bbe12a352aa387e12cd6dd Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 3 May 2016 01:22:33 +0200 Subject: [PATCH] wscript: use ctx.env.CC_NAME to check if using msvc --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index f4eb8fe2..db17caab 100644 --- a/wscript +++ b/wscript @@ -116,7 +116,7 @@ def configure(ctx): target_platform = ctx.options.target_platform ctx.env['DEST_OS'] = target_platform - if 'CL.exe' not in ctx.env.CC[0]: + if ctx.env.CC_NAME != 'msvc': ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra'] else: ctx.env.CFLAGS += ['/W4'] -- 2.11.0