Skip to content

Commit e5d6d6b

Browse files
authored
Add -Wno-deprecated to test_multiply_defined (#17001)
The LTO version of this test warns that bitcode linking is deprecated
1 parent df5433e commit e5d6d6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,10 @@ def test_multiply_defined_symbols(self):
901901
building.emar('cr', 'liba.a', ['a1.o', 'a2.o'])
902902
building.emar('cr', 'libb.a', ['b1.o', 'b2.o'])
903903

904-
self.run_process([EMCC, '-r', '-o', 'all.o', 'main.o', 'liba.a', 'libb.a'] + self.get_emcc_args())
904+
# Add -Wno-deprecated to avoid warning about bitcode linking in the LTO
905+
# version of this test.
906+
self.run_process([EMCC, '-r', '-o', 'all.o', 'main.o', 'liba.a', 'libb.a',
907+
'-Wno-deprecated'] + self.get_emcc_args())
905908

906909
self.emcc('all.o', output_filename='all.js')
907910
self.do_run('all.js', 'result: 1', no_build=True)

0 commit comments

Comments
 (0)