diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-24 20:42:06 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-24 20:42:06 -0800 |
commit | d84cdea93caf240a03331ac876ad9ad82bc33d65 (patch) | |
tree | fc68505eba7dc702b04c8db7e537f5bc3c5af4f4 /emscripten.py | |
parent | 08152915406789d3e3560a17a19a65d1ffe27c79 (diff) |
don't import implemented functions from library
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 0d565030..ac66ed8d 100755 --- a/emscripten.py +++ b/emscripten.py @@ -796,7 +796,11 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, if DEBUG: logging.debug('emscript: js compiler glue') # Integrate info from backend - settings['DEFAULT_LIBRARY_FUNCS_TO_INCLUDE'] = list(set(settings['DEFAULT_LIBRARY_FUNCS_TO_INCLUDE'] + map(shared.JS.to_nice_ident, metadata['declares']))) + settings['DEFAULT_LIBRARY_FUNCS_TO_INCLUDE'] = list( + set(settings['DEFAULT_LIBRARY_FUNCS_TO_INCLUDE'] + map(shared.JS.to_nice_ident, metadata['declares'])).difference( + map(lambda x: x[1:], metadata['implementedFunctions']) + ) + ) # Settings changes assert settings['TARGET_LE32'] == 1 |