aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-06 13:38:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-06 13:38:25 -0800
commitc6839090999bf0e70104f35c1b935d5ab3189c50 (patch)
tree180fd16ee27f1ec8655ecfeaaf7c9fe9651e71f0
parent72291a246855c9d3cb3dd8f8ccd0cf513f91442c (diff)
apply EMMAKEN_CFLAGS directly to commandline, not just to clang calls, so that we can parse it in emcc and e.g. disable vectorization as necessary
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index bad118cd..45f16039 100755
--- a/emcc
+++ b/emcc
@@ -687,7 +687,7 @@ if os.environ.get('EMMAKEN_CXX'):
CC_ADDITIONAL_ARGS = shared.COMPILER_OPTS
EMMAKEN_CFLAGS = os.environ.get('EMMAKEN_CFLAGS')
-if EMMAKEN_CFLAGS: CC_ADDITIONAL_ARGS += shlex.split(EMMAKEN_CFLAGS)
+if EMMAKEN_CFLAGS: sys.argv += shlex.split(EMMAKEN_CFLAGS)
# ---------------- Utilities ---------------