Use Cargo.toml lints instead of a build script

This commit is contained in:
Sayantan Chakraborty 2024-09-22 17:15:23 +05:30 committed by Amanieu d'Antras
parent 63603fd41f
commit 959c49f0d0
2 changed files with 3 additions and 3 deletions

View file

@ -26,3 +26,6 @@ std_detect = { version = "0.*", path = "../std_detect" }
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
syscalls = { version = "0.6.18", default-features = false }
[lints.rust]
unexpected_cfgs = {level = "warn", check-cfg = ['cfg(stdarch_intel_sde)'] }

View file

@ -1,3 +0,0 @@
fn main() {
println!("cargo::rustc-check-cfg=cfg(stdarch_intel_sde)");
}