ref: 341585b82fc14f64290032e8213639861dff7f8a
parent: 150ec2d2802cd265619c260dd7c1fd339b3b76b6
author: Martin Hermant <martin.hermant@gmail.com>
date: Mon May 29 14:10:07 EDT 2017
wscript : emscripten pass more debug flags in debug mode (ASSERTION=2,SAFE_HEAP=1,ALIASING_FUNCTION_POINTERS=0)
--- a/wscript
+++ b/wscript
@@ -231,7 +231,9 @@
if ctx.options.build_type == "debug":
ctx.env.cshlib_PATTERN = '%s.js'
- ctx.env.LINKFLAGS_cshlib += ['-s','ASSERTIONS=1']
+ ctx.env.LINKFLAGS_cshlib += ['-s','ASSERTIONS=2']
+ ctx.env.LINKFLAGS_cshlib += ['-s','SAFE_HEAP=1']
+ ctx.env.LINKFLAGS_cshlib += ['-s','ALIASING_FUNCTION_POINTERS=0']
else:
ctx.env.LINKFLAGS += ['-Oz']
ctx.env.cshlib_PATTERN = '%s.min.js'