diff options
| author | Kohei Tokunaga <ktokunaga.mail@gmail.com> | 2025-09-26 17:31:03 +0900 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-15 09:17:55 -0700 |
| commit | 6d715a59ae780f55a7a303a8480dfe33d806ae26 (patch) | |
| tree | 5b67aad2d30ba5e2af708f1b2057cfda41be391d /mesonbuild/compilers | |
| parent | 80914bcf03947c02388df0067a9c3486d694865c (diff) | |
| download | meson-6d715a59ae780f55a7a303a8480dfe33d806ae26.tar.gz | |
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 <ktokunaga.mail@gmail.com>
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/rust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 7e6c31096..d7609f370 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -200,7 +200,7 @@ class RustCompiler(Compiler): 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 |
