Skip to content

Commit f873168

Browse files
authored
perform EXPORT_ALL on SIDE_MODULEs too (#7319)
This avoids fastcomp doing it internally as a hack, and will allow further improvements for dynamic linking.
1 parent 637bb1d commit f873168

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

emcc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,7 @@ def check(input_file):
11621162
if shared.Settings.EMULATED_FUNCTION_POINTERS == 0:
11631163
shared.Settings.EMULATED_FUNCTION_POINTERS = 2 # by default, use optimized function pointer emulation
11641164
shared.Settings.ERROR_ON_UNDEFINED_SYMBOLS = shared.Settings.WARN_ON_UNDEFINED_SYMBOLS = 0
1165-
if not shared.Settings.SIDE_MODULE:
1166-
shared.Settings.EXPORT_ALL = 1
1165+
shared.Settings.EXPORT_ALL = 1
11671166

11681167
if shared.Settings.EMTERPRETIFY:
11691168
shared.Settings.FINALIZE_ASM_JS = 0

0 commit comments

Comments
 (0)