@@ -116,7 +116,7 @@ def update_settings_glue(metadata, DEBUG):
116116 shared .Settings .DEFAULT_LIBRARY_FUNCS_TO_INCLUDE += metadata ['globalImports' ]
117117
118118 all_exports = metadata ['exports' ] + list (metadata ['namedGlobals' ].keys ())
119- shared .Settings .IMPLEMENTED_FUNCTIONS = [asmjs_mangle (x ) for x in all_exports ]
119+ shared .Settings .WASM_EXPORTS = [asmjs_mangle (x ) for x in all_exports ]
120120
121121 shared .Settings .BINARYEN_FEATURES = metadata ['features' ]
122122 if shared .Settings .RELOCATABLE :
@@ -126,7 +126,7 @@ def update_settings_glue(metadata, DEBUG):
126126 if shared .Settings .INITIAL_TABLE == - 1 :
127127 shared .Settings .INITIAL_TABLE = metadata ['tableSize' ] + 1
128128
129- shared .Settings .HAS_MAIN = shared .Settings .MAIN_MODULE or shared .Settings .STANDALONE_WASM or '_main' in shared .Settings .IMPLEMENTED_FUNCTIONS
129+ shared .Settings .HAS_MAIN = shared .Settings .MAIN_MODULE or shared .Settings .STANDALONE_WASM or '_main' in shared .Settings .WASM_EXPORTS
130130
131131 # When using dynamic linking the main function might be in a side module.
132132 # To be safe assume they do take input parametes.
@@ -186,7 +186,7 @@ def set_memory(static_bump):
186186def report_missing_symbols (pre ):
187187 # the initial list of missing functions are that the user explicitly exported
188188 # but were not implemented in compiled code
189- missing = set (shared .Settings .USER_EXPORTED_FUNCTIONS ) - set (shared .Settings .IMPLEMENTED_FUNCTIONS )
189+ missing = set (shared .Settings .USER_EXPORTED_FUNCTIONS ) - set (shared .Settings .WASM_EXPORTS )
190190
191191 for requested in sorted (missing ):
192192 if (f'function { requested } (' ) not in pre :
@@ -204,7 +204,7 @@ def report_missing_symbols(pre):
204204 # maximum compatibility.
205205 return
206206
207- if shared .Settings .EXPECT_MAIN and '_main' not in shared .Settings .IMPLEMENTED_FUNCTIONS :
207+ if shared .Settings .EXPECT_MAIN and '_main' not in shared .Settings .WASM_EXPORTS :
208208 # For compatibility with the output of wasm-ld we use the same wording here in our
209209 # error message as if wasm-ld had failed (i.e. in LLD_REPORT_UNDEFINED mode).
210210 exit_with_error ('entry symbol not defined (pass --no-entry to suppress): main' )
0 commit comments