ref: ae36035d47b5e93be7bbe12a352aa387e12cd6dd
parent: 70a304e325da3cdeed679ce94b9f4846a0ae2937
author: Paul Brossier <piem@piem.org>
date: Mon May 2 21:22:33 EDT 2016
wscript: use ctx.env.CC_NAME to check if using msvc
--- a/wscript
+++ b/wscript
@@ -116,7 +116,7 @@
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']