Bug 1966562 - Adjust mozglue build script for up to rustc 1.89. r=firefox-build-system-reviewers,ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D249510
This commit is contained in:
Mike Hommey
2025-05-15 22:49:29 +00:00
committed by mh@glandium.org
parent 439a04f554
commit 68f64cabc8

View File

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