ref: 5bba662f28fdb95a5d14b9e3838eebdc4b328d0b
parent: b8ea001bd01d9a0c76403415b1e3304319597b41
author: Paul Brossier <piem@piem.org>
date: Sun May 15 19:39:48 EDT 2016
wscript: add /MD and /D_CRT_SECURE_NO_WARNINGS on windows
--- a/wscript
+++ b/wscript
@@ -119,7 +119,8 @@
if ctx.env.CC_NAME != 'msvc':
ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
else:
- ctx.env.CFLAGS += ['/W4']
+ ctx.env.CFLAGS += ['/W4', '/MD']
+ ctx.env.CFLAGS += ['/D_CRT_SECURE_NO_WARNINGS']
ctx.check_cc(lib='m', uselib_store='M', mandatory=False)