From d799fe6be5d8b89599625dcae9d58ad77cb04c03 Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Fri, 26 Sep 2025 17:31:03 +0900 Subject: [PATCH] rust: mark verbatim unsupported also for wasm This fixes the following error occured in the test 3 of the Emscripten build. > wasm-ld: error: unable to find library -llibvalue.a Signed-off-by: Kohei Tokunaga --- mesonbuild/compilers/rust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 7e6c31096687..d7609f370224 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -200,7 +200,7 @@ def has_verbatim(self) -> bool: if version_compare(self.version, '< 1.67.0'): return False # GNU ld support '-l:PATH' - if 'ld.' in self.linker.id: + if 'ld.' in self.linker.id and self.linker.id != 'ld.wasm': return True # -l:+verbatim does not work (yet?) with MSVC link or Apple ld64 # (https://github.com/rust-lang/rust/pull/138753). For ld64, it