shithub: aubio

Download patch

ref: 642122150e2f012055d5cf82d38037153ca3afe6
parent: 4b084a93667f14f82582714fa5185349f1f03a6e
author: Martin Hermant <martin.hermant@gmail.com>
date: Tue May 30 13:50:07 EDT 2017

wscript : emscripten  : pass debug js flag to examples and tests

--- a/wscript
+++ b/wscript
@@ -231,9 +231,10 @@
         
         if ctx.options.build_type == "debug":
             ctx.env.cshlib_PATTERN = '%s.js'
-            ctx.env.LINKFLAGS_cshlib += ['-s','ASSERTIONS=2']
-            ctx.env.LINKFLAGS_cshlib += ['-s','SAFE_HEAP=1']
-            ctx.env.LINKFLAGS_cshlib += ['-s','ALIASING_FUNCTION_POINTERS=0']
+            ctx.env.LINKFLAGS += ['-s','ASSERTIONS=2']
+            ctx.env.LINKFLAGS += ['-s','SAFE_HEAP=1']
+            ctx.env.LINKFLAGS += ['-s','ALIASING_FUNCTION_POINTERS=0']
+            ctx.env.LINKFLAGS += ['-O0']
         else:
             ctx.env.LINKFLAGS += ['-Oz']
             ctx.env.cshlib_PATTERN = '%s.min.js'