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