forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backed out changeset 74e579530088 (bug 1730397) as requested by Gland…
…ium. CLOSED TREE
- Loading branch information
Cristian Tuns
committed
Sep 17, 2021
1 parent
2f5f767
commit 394e0bc
Showing
7 changed files
with
5 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,8 @@ | ||
use rustc_version::{version_meta, Channel, Version}; | ||
|
||
fn main() { | ||
println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1"); | ||
let target = std::env::var("TARGET") | ||
.expect("TARGET environment variable not defined"); | ||
if target.contains("neon") { | ||
println!("cargo:rustc-cfg=libcore_neon"); | ||
} | ||
let ver_meta = version_meta().unwrap(); | ||
let old_const_generics = match dbg!(ver_meta.channel) { | ||
Channel::Stable | Channel::Beta | ||
if ver_meta.semver < Version::parse("1.56.0-alpha").unwrap() => | ||
{ | ||
true | ||
} | ||
Channel::Nightly | Channel::Dev | ||
if ver_meta | ||
.commit_date | ||
.as_deref() | ||
.map(|d| d < "2021-08-31") | ||
.unwrap_or(false) => | ||
{ | ||
true | ||
} | ||
_ => false, | ||
}; | ||
if old_const_generics { | ||
println!("cargo:rustc-cfg=const_generics"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters