Skip to content

Commit 50dea26

Browse files
committed
Clear DEFAULT_LIBRARY_FUNCS_TO_INCLUDE for MINIMAL_RUNTIME
1 parent f46a995 commit 50dea26

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

emcc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,9 +1105,7 @@ def get_last_setting_change(setting):
11051105

11061106
if shared.Settings.MINIMAL_RUNTIME or 'MINIMAL_RUNTIME=1' in settings_changes or 'MINIMAL_RUNTIME=2' in settings_changes:
11071107
# Remove the default exported functions 'malloc', 'free', etc. those should only be linked in if used
1108-
for to_remove in ['malloc', 'free', 'memcpy', 'memset', 'emscripten_get_heap_size']:
1109-
if to_remove in shared.Settings.DEFAULT_LIBRARY_FUNCS_TO_INCLUDE:
1110-
shared.Settings.DEFAULT_LIBRARY_FUNCS_TO_INCLUDE.remove(to_remove)
1108+
shared.Settings.DEFAULT_LIBRARY_FUNCS_TO_INCLUDE = []
11111109

11121110
# Set ASM_JS default here so that we can override it from the command line.
11131111
shared.Settings.ASM_JS = 1 if options.opt_level > 0 else 2

0 commit comments

Comments
 (0)