diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-16 10:27:51 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-16 10:27:51 -0700 |
commit | eb3a262803919851a8079895c0add11628c760b0 (patch) | |
tree | 4026c68ad681a057e852e0bd4eaa60e096bb14e9 /emscripten.py | |
parent | 9b64a956949247cb838f03723aa2cde1598e65fc (diff) |
get bindings generator to work in asm.js (except for customizeVTable)
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 0698c783..c9d8505d 100755 --- a/emscripten.py +++ b/emscripten.py @@ -269,8 +269,10 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, for key in curr_forwarded_json['Functions']['indexedFunctions'].iterkeys(): indexed_functions.add(key) if settings.get('ASM_JS'): + export_bindings = settings['EXPORT_BINDINGS'] for key in curr_forwarded_json['Functions']['implementedFunctions'].iterkeys(): - if key in all_exported_functions: exported_implemented_functions.add(key) + if key in all_exported_functions or (export_bindings and key.startswith('_emscripten_bind')): + exported_implemented_functions.add(key) for key, value in curr_forwarded_json['Functions']['unimplementedFunctions'].iteritems(): forwarded_json['Functions']['unimplementedFunctions'][key] = value |