Allow `-Wl,--print-map` now that wasm-ld supports it (#12697)
This commit is contained in:
Родитель
1f678eb3a0
Коммит
7547f68f1f
2
emcc.py
2
emcc.py
|
@ -91,8 +91,6 @@ SUPPORTED_LINKER_FLAGS = (
|
|||
UNSUPPORTED_LLD_FLAGS = {
|
||||
# macOS-specific linker flag that libtool (ltmain.sh) will if macOS is detected.
|
||||
'-bind_at_load': False,
|
||||
# wasm-ld doesn't support map files yet.
|
||||
'--print-map': False,
|
||||
'-M': False,
|
||||
# wasm-ld doesn't support soname or other dynamic linking flags (yet). Ignore them
|
||||
# in order to aid build systems that want to pass these flags.
|
||||
|
|
|
@ -8940,12 +8940,6 @@ Module.arguments has been replaced with plain arguments_ (the initial value can
|
|||
self.run_process([EMCC, path_from_root('tests', 'hello_world.cpp'), '-lm', '-ldl', '-lrt', '-lpthread'])
|
||||
|
||||
def test_supported_linker_flags(self):
|
||||
out = self.run_process([EMCC, path_from_root('tests', 'hello_world.cpp'), '-Wl,--print-map'], stderr=PIPE).stderr
|
||||
self.assertContained('warning: ignoring unsupported linker flag: `--print-map`', out)
|
||||
|
||||
out = self.run_process([EMCC, path_from_root('tests', 'hello_world.cpp'), '-Xlinker', '--print-map'], stderr=PIPE).stderr
|
||||
self.assertContained('warning: ignoring unsupported linker flag: `--print-map`', out)
|
||||
|
||||
out = self.run_process([EMCC, path_from_root('tests', 'hello_world.cpp'), '-Wl,-rpath=foo'], stderr=PIPE).stderr
|
||||
self.assertContained('warning: ignoring unsupported linker flag: `-rpath=foo`', out)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче