diff --git a/test/test_other.py b/test/test_other.py index deed55ef59e96..be157c2587f1c 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -13406,8 +13406,9 @@ def test_wasm_worker_preprocessor_flags(self): @parameterized({ # we will warn here since -O2 runs the optimizer and -g enables DWARF 'O2_g': (True, ['-O2', '-g']), - # asyncify will force wasm-opt to run as well, so we warn here too - 'asyncify_g': (True, ['-sASYNCIFY', '-g']), + # asyncify will force wasm-opt to run as well, but without optimizations, so + # we do not warn about the lack of optimization + 'asyncify_g': (False, ['-sASYNCIFY', '-g']), # with --profiling-funcs however we do not use DWARF (we just emit the # names section) and will not warn. 'O2_pfuncs': (False, ['-O2', '--profiling-funcs']), diff --git a/test/third_party/posixtestsuite b/test/third_party/posixtestsuite index 869e266b090a8..7ac21b152494f 160000 --- a/test/third_party/posixtestsuite +++ b/test/third_party/posixtestsuite @@ -1 +1 @@ -Subproject commit 869e266b090a8d44e51bb040904c942556b1e4ab +Subproject commit 7ac21b152494f22d7778ac35ddf3c04083111a82 diff --git a/tools/link.py b/tools/link.py index 18f7d7cad912e..9f332e6095026 100644 --- a/tools/link.py +++ b/tools/link.py @@ -2350,7 +2350,7 @@ def phase_binaryen(target, options, wasm_target): intermediate_debug_info -= 1 # currently binaryen's DWARF support will limit some optimizations; warn on # that. see https://github.com/emscripten-core/emscripten/issues/15269 - if settings.GENERATE_DWARF: + if settings.GENERATE_DWARF and should_run_binaryen_optimizer(): diagnostics.warning('limited-postlink-optimizations', 'running limited binaryen optimizations because DWARF info requested (or indirectly required)') with ToolchainProfiler.profile_block('wasm_opt'): building.run_wasm_opt(wasm_target,