aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-16 12:30:22 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-16 12:30:22 -0800
commit153f2d93520f37525f30a3808b969c5533387a3c (patch)
tree93d691925a910406f0eb5cd0edfa48da4401b43b /emcc
parent6334c3dd9814ef4174baadd0a4ecfed572596b72 (diff)
RETAIN_COMPILER_SETTINGS, Runtime.getCompilerSetting and emscripten_get_compiler_setting - an optional way to look up compiler flags at runtime
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/emcc b/emcc
index 7aaf681b..22bf89c8 100755
--- a/emcc
+++ b/emcc
@@ -1308,6 +1308,10 @@ try:
if js_opts:
shared.Settings.RUNNING_JS_OPTS = 1
+ shared.Settings.EMSCRIPTEN_VERSION = shared.EMSCRIPTEN_VERSION
+ shared.Settings.OPT_LEVEL = opt_level
+ shared.Settings.DEBUG_LEVEL = debug_level
+
## Compile source code to bitcode
logging.debug('compiling to bitcode')