Skip to content

Fix EXPORT_ALL with wasm backend #7310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tools/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -1918,11 +1918,10 @@ def link_lld(args, target, opts=[], lto_level=0):
# if Settings.DEBUG_LEVEL < 2 and not Settings.PROFILING_FUNCS:
# cmd.append('--strip-debug')

for export in expand_response(Settings.EXPORTED_FUNCTIONS):
cmd += ['--export', export[1:]] # Strip the leading underscore
if Settings.EXPORT_ALL:
cmd += ['--no-gc-sections', '--export-all']
else:
for export in expand_response(Settings.EXPORTED_FUNCTIONS):
cmd += ['--export', export[1:]] # Strip the leading underscore
cmd += ['--export-all']

logging.debug('emcc: lld-linking: %s to %s', args, target)
check_call(cmd)
Expand Down