Bug 1901890 - Adjust mozglue build script for rustc 1.81. r=firefox-build-system-reviewers,sergesanspaille

Differential Revision: https://phabricator.services.mozilla.com/D213342
This commit is contained in:
Mike Hommey 2024-06-12 08:26:03 +00:00
Родитель 92e08f0a38
Коммит 02d1951025
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -16,10 +16,10 @@ fn main() {
println!("cargo:rerun-if-changed=wrappers.cpp");
let ver = version().unwrap();
let max_oom_hook_version = Version::parse("1.81.0-alpha").unwrap();
let max_oom_hook_version = Version::parse("1.82.0-alpha").unwrap();
// The new alloc error panic feature was temporarily reverted. We kept the
// code in tree, but the version here is such that it's effectively never used.
let max_alloc_error_panic_version = Version::parse("1.81.0-alpha").unwrap();
let max_alloc_error_panic_version = Version::parse("1.82.0-alpha").unwrap();
if ver >= Version::parse("1.80.0-alpha").unwrap() {
println!("cargo::rustc-check-cfg=cfg(oom_with, values(\"hook\", \"alloc_error_panic\"))");