ref: 6e5c03aa1b8be49f9521ce000f0b7e475878786e
parent: 2f5f1e40166092e7aa7529328914a64d09ceacd2
author: Martin Hermant <martin.hermant@gmail.com>
date: Mon May 29 15:47:16 EDT 2017
sett —memory-init-file = 0 also for tests and examples to make them runnable with node
--- a/wscript
+++ b/wscript
@@ -248,7 +248,7 @@
c_mangled_names = ['_'+s for s in exported_funcnames]
ctx.env.LINKFLAGS_cshlib += ['-s','EXPORTED_FUNCTIONS=%s'%c_mangled_names]
# put memory file inside generated js files
- ctx.env.LINKFLAGS_cshlib+=['--memory-init-file','0']
+ ctx.env.LINKFLAGS+=['--memory-init-file','0']
ctx.env.cprogram_PATTERN = "%s.js"
ctx.env.cstlib_PATTERN = '%s.a'
if (ctx.options.enable_atlas != True):