aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
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 /emscripten.py
parent392b7183a978fd1d62c29fc027973943fc440510 (diff)
Use DLOPEN_SUPPORT instead of LINKABLE to enable self-dlopen.
Also address style feedback.
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/emscripten.py b/emscripten.py
index 5c3e28f7..1536bcdf 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -621,10 +621,10 @@ Runtime.stackRestore = function(top) { asm['stackRestore'](top) };
''']
# Create symbol table for self-dlopen
- if settings.get('LINKABLE'):
- symbol_table = {k:v+forwarded_json['Runtime']['GLOBAL_BASE']
+ if settings.get('DLOPEN_SUPPORT'):
+ symbol_table = { k:v+forwarded_json['Runtime']['GLOBAL_BASE']
for k,v in forwarded_json['Variables']['indexedGlobals'].iteritems()
- if forwarded_json['Variables']['globals'][k]['named']}
+ if forwarded_json['Variables']['globals'][k]['named'] }
for raw in last_forwarded_json['Functions']['tables'].itervalues():
if raw == '': continue
table = map(string.strip, raw[raw.find('[')+1:raw.find(']')].split(","))