Skip to content

Commit b16fb44

Browse files
committed
Remove LLD_REPORT_UNDEFINED setting
This setting became the default in #16003. There is no reason to keep it around anymore and we have has no issues reported in the last 3 months (4 releases).
1 parent 65f36f3 commit b16fb44

File tree

6 files changed

+3
-25
lines changed

6 files changed

+3
-25
lines changed

emcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3075,7 +3075,7 @@ def phase_link(linker_arguments, wasm_target):
30753075
# fastcomp deferred linking opts.
30763076
# TODO: we could check if this is a fastcomp build, and still speed things up here
30773077
js_syms = None
3078-
if settings.LLD_REPORT_UNDEFINED and settings.ERROR_ON_UNDEFINED_SYMBOLS and not settings.SIDE_MODULE:
3078+
if settings.ERROR_ON_UNDEFINED_SYMBOLS and not settings.SIDE_MODULE:
30793079
js_syms = get_all_js_syms()
30803080
building.link_lld(linker_arguments, wasm_target, external_symbols=js_syms)
30813081

emscripten.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def report_missing_symbols(js_symbols):
239239

240240
if settings.EXPECT_MAIN and 'main' not in settings.WASM_EXPORTS and '__main_argc_argv' not in settings.WASM_EXPORTS:
241241
# For compatibility with the output of wasm-ld we use the same wording here in our
242-
# error message as if wasm-ld had failed (i.e. in LLD_REPORT_UNDEFINED mode).
242+
# error message as if wasm-ld had failed.
243243
exit_with_error('entry symbol not defined (pass --no-entry to suppress): main')
244244

245245

src/jsifier.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,6 @@ function ${name}(${args}) {
278278
if (dependent) msg += ` (referenced by ${dependent})`;
279279
if (ERROR_ON_UNDEFINED_SYMBOLS) {
280280
error(msg);
281-
if (dependent == TOP_LEVEL && !LLD_REPORT_UNDEFINED) {
282-
warnOnce('Link with `-sLLD_REPORT_UNDEFINED` to get more information on undefined symbols');
283-
}
284281
warnOnce('To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`');
285282
warnOnce(mangled + ' may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library');
286283
} else if (VERBOSE || WARN_ON_UNDEFINED_SYMBOLS) {

src/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,4 +2188,5 @@ var LEGACY_SETTINGS = [
21882188
['LIBRARY_DEPS_TO_AUTOEXPORT', [[]], 'No longer needed'],
21892189
['EMIT_EMSCRIPTEN_METADATA', [0], 'No longer supported'],
21902190
['SHELL_FILE', [''], 'No longer supported'],
2191+
['LLD_REPORT_UNDEFINED', [1], 'No longer supported'],
21912192
];

test/test_core.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4223,11 +4223,6 @@ def test_dylink_basics_no_modify(self):
42234223
self.set_setting('ERROR_ON_WASM_CHANGES_AFTER_LINK')
42244224
self.do_basic_dylink_test()
42254225

4226-
@needs_dylink
4227-
def test_dylink_basics_no_lld_report_undefined(self):
4228-
self.set_setting('LLD_REPORT_UNDEFINED', 0)
4229-
self.do_basic_dylink_test()
4230-
42314226
@needs_dylink
42324227
def test_dylink_no_export(self):
42334228
self.set_setting('NO_DECLARE_ASM_MODULE_EXPORTS')

test/test_other.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11037,21 +11037,6 @@ def test_signature_mismatch(self):
1103711037
self.expect_fail([EMCC, '-Wl,--fatal-warnings', 'a.c', 'b.c'])
1103811038
self.expect_fail([EMCC, '-sSTRICT', 'a.c', 'b.c'])
1103911039

11040-
# TODO(sbc): Remove these tests once we remove the LLD_REPORT_UNDEFINED
11041-
def test_lld_report_undefined(self):
11042-
create_file('main.c', 'void foo(); int main() { foo(); return 0; }')
11043-
stderr = self.expect_fail([EMCC, '-sLLD_REPORT_UNDEFINED=0', 'main.c'])
11044-
self.assertContained('error: undefined symbol: foo (referenced by top-level compiled C/C++ code)', stderr)
11045-
11046-
def test_lld_report_undefined_reverse_deps(self):
11047-
self.run_process([EMCC, '-sLLD_REPORT_UNDEFINED=0', '-sREVERSE_DEPS=all', test_file('hello_world.c')])
11048-
11049-
def test_lld_report_undefined_exceptions(self):
11050-
self.run_process([EMXX, '-sLLD_REPORT_UNDEFINED=0', '-fwasm-exceptions', test_file('hello_libcxx.cpp')])
11051-
11052-
def test_lld_report_undefined_main_module(self):
11053-
self.run_process([EMCC, '-sLLD_REPORT_UNDEFINED=0', '-sMAIN_MODULE=2', test_file('hello_world.c')])
11054-
1105511040
# Verifies that warning messages that Closure outputs are recorded to console
1105611041
def test_closure_warnings(self):
1105711042
# Default should be no warnings

0 commit comments

Comments
 (0)