shithub: aubio

Download patch

ref: 1539d4b56fd0df54fee6b06239bb720fea9a2975
parent: fc5e189ce9e7f0e1e1f585a67c73fddc293c6e9a
author: Martin Hermant <martin.hermant@gmail.com>
date: Mon May 29 06:44:29 EDT 2017

wscript : use  -Oz when building release with emscripten

--- a/wscript
+++ b/wscript
@@ -141,6 +141,10 @@
             # no optimization in debug mode
             ctx.env.prepend_value('CFLAGS', ['-O0'])
         else:
+            if target_platform == 'emscripten':
+                # -Oz for small js file generation
+                ctx.env.prepend_value('CFLAGS', ['-Oz'])
+            else:
             # default to -O2 in release mode
             ctx.env.prepend_value('CFLAGS', ['-O2'])
         # enable debug symbols and configure warnings