diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-12 14:51:21 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-08 10:51:48 -0700 |
| commit | ebd25b48e09544a90cb811ffe4ee5d18cc3ddc47 (patch) | |
| tree | 916c43b5e96e6951d3f65df56113f04ccaf02376 /mesonbuild/backend | |
| parent | 2a6a7a9f14a7eed75efbe0eff6659e57b45c5f3c (diff) | |
| download | meson-ebd25b48e09544a90cb811ffe4ee5d18cc3ddc47.tar.gz | |
rust: query linker in addition to compiler for verbatim support
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/backend')
| -rw-r--r-- | mesonbuild/backend/ninjabackend.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index fb5d164b1..cab4547ee 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -2038,8 +2038,6 @@ class NinjaBackend(backends.Backend): except (KeyError, AttributeError): pass - has_verbatim = mesonlib.version_compare(rustc.version, '>= 1.67.0') - def _link_library(libname: str, static: bool, bundle: bool = False) -> None: orig_libname = libname type_ = 'static' if static else 'dylib' @@ -2049,7 +2047,7 @@ class NinjaBackend(backends.Backend): linkdirs.add(dir_) if not bundle and static: modifiers.append('-bundle') - if has_verbatim: + if rustc.has_verbatim(): modifiers.append('+verbatim') else: # undo the effects of -l without verbatim |
