summaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-07-15 14:36:28 -0700
committerJez Ng <me@jezng.com>2013-07-15 14:36:28 -0700
commit61c31f69359132e7630a9c4c2c3d25a6ed742247 (patch)
treedf58344e2bcd8de8aeea48d8b95e85903316b9b1 /emcc
parent392b7183a978fd1d62c29fc027973943fc440510 (diff)
Use DLOPEN_SUPPORT instead of LINKABLE to enable self-dlopen.
Also address style feedback.
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/emcc b/emcc
index bffe8d5d..895aab87 100755
--- a/emcc
+++ b/emcc
@@ -1077,6 +1077,9 @@ try:
shared.Settings.LINKABLE = 1 # TODO: add FORCE_DCE option for the brave people that do want to dce here and in side modules
debug_level = max(debug_level, 2)
+ if shared.Settings.DLOPEN_SUPPORT:
+ shared.Settings.LINKABLE = 1
+
## Compile source code to bitcode
logging.debug('compiling to bitcode')