diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-02-26 09:39:24 -0800 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-02-27 15:27:42 -0500 |
| commit | 8ebc8c1878852f914172b99135d2960429402204 (patch) | |
| tree | c0794bca2ba00cf5d78b902eebe6f60460bf55c8 /mesonbuild/compilers/rust.py | |
| parent | 5d648a112fe8ee3bfb637d9db133c05ef3b184b8 (diff) | |
| download | meson-8ebc8c1878852f914172b99135d2960429402204.tar.gz | |
modules/rust: use 'nightly' as the bindgen version if the compiler is nightly
This adds tracking for both nightly and beta to the rust compiler.
Diffstat (limited to 'mesonbuild/compilers/rust.py')
| -rw-r--r-- | mesonbuild/compilers/rust.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 3acc30e54..475b7a402 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -100,6 +100,8 @@ class RustCompiler(Compiler): if 'link' in self.linker.id: self.base_options.add(OptionKey('b_vscrt')) self.native_static_libs: T.List[str] = [] + self.is_beta = '-beta' in full_version + self.is_nightly = '-nightly' in full_version def needs_static_linker(self) -> bool: return False |
