Skip to content

Commit 94bb14c

Browse files
committed
send EXPORTED_FUNCTIONS to fastcomp glue
1 parent 59e7963 commit 94bb14c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

emscripten.py

+1
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ def save_settings():
852852

853853
# merge forwarded data
854854
assert settings.get('ASM_JS'), 'fastcomp is asm.js only'
855+
settings['EXPORTED_FUNCTIONS'] = forwarded_json['EXPORTED_FUNCTIONS']
855856
all_exported_functions = set(settings['EXPORTED_FUNCTIONS']) # both asm.js and otherwise
856857
for additional_export in settings['DEFAULT_LIBRARY_FUNCS_TO_INCLUDE']: # additional functions to export from asm, if they are implemented
857858
all_exported_functions.add('_' + additional_export)

src/modules.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,8 @@ var PassManager = {
485485
}));
486486
} else if (phase == 'glue') {
487487
print('\n//FORWARDED_DATA:' + JSON.stringify({
488-
Functions: Functions
488+
Functions: Functions,
489+
EXPORTED_FUNCTIONS: EXPORTED_FUNCTIONS
489490
}));
490491
}
491492
},

0 commit comments

Comments
 (0)