Skip to content

Commit 8fd0437

Browse files
authored
Disable test_asyncify_indirect_lists in LTO mode (#21765)
LTO mode ends up inlining more, and the function names in the ASYNCIFY_ADD list no longer appear because of that, causing the test to break. See #21757
1 parent 26cceae commit 8fd0437

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8232,6 +8232,10 @@ def test_asyncify_lists(self, args, should_pass, response=None):
82328232
def test_asyncify_indirect_lists(self, args, should_pass):
82338233
self.set_setting('ASYNCIFY')
82348234
self.emcc_args += args
8235+
if '-flto' in str(self.emcc_args):
8236+
# LTO ends up inlining virt(), so ASYNCIFY_ADD does not work as expected.
8237+
# If wasm-opt were aware of LLVM's no-inline mark this would not happen.
8238+
self.skipTest('https://github.com/emscripten-core/emscripten/issues/21757')
82358239
try:
82368240
self.do_core_test('test_asyncify_indirect_lists.cpp', assert_identical=True)
82378241
if not should_pass:

0 commit comments

Comments
 (0)