From 80112ddacba770ea708e9ed322567d3c35417154 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 4 Apr 2024 13:54:56 -0500 Subject: [PATCH] remove redundant build ellission --- crates/targets/aarch64_gnullvm/build.rs | 8 -------- crates/targets/aarch64_msvc/build.rs | 7 ------- crates/targets/i686_gnu/build.rs | 7 ------- crates/targets/i686_gnullvm/build.rs | 8 -------- crates/targets/i686_msvc/build.rs | 7 ------- crates/targets/x86_64_gnu/build.rs | 8 -------- crates/targets/x86_64_gnullvm/build.rs | 8 -------- crates/targets/x86_64_msvc/build.rs | 7 ------- 8 files changed, 60 deletions(-) diff --git a/crates/targets/aarch64_gnullvm/build.rs b/crates/targets/aarch64_gnullvm/build.rs index f6ba3ec3ff..b5caa2baad 100644 --- a/crates/targets/aarch64_gnullvm/build.rs +++ b/crates/targets/aarch64_gnullvm/build.rs @@ -1,12 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - let target = std::env::var("TARGET").unwrap(); - if family != "windows" || arch != "aarch64" || env != "gnu" || !target.ends_with("-gnullvm") { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); diff --git a/crates/targets/aarch64_msvc/build.rs b/crates/targets/aarch64_msvc/build.rs index e1cd062f3f..b5caa2baad 100644 --- a/crates/targets/aarch64_msvc/build.rs +++ b/crates/targets/aarch64_msvc/build.rs @@ -1,11 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - if family != "windows" || arch != "aarch64" || env != "msvc" { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); diff --git a/crates/targets/i686_gnu/build.rs b/crates/targets/i686_gnu/build.rs index d10600d9d7..b5caa2baad 100644 --- a/crates/targets/i686_gnu/build.rs +++ b/crates/targets/i686_gnu/build.rs @@ -1,11 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - if family != "windows" || arch != "x86" || env != "gnu" { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); diff --git a/crates/targets/i686_gnullvm/build.rs b/crates/targets/i686_gnullvm/build.rs index ff5452fcd5..b5caa2baad 100644 --- a/crates/targets/i686_gnullvm/build.rs +++ b/crates/targets/i686_gnullvm/build.rs @@ -1,12 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - let target = std::env::var("TARGET").unwrap(); - if family != "windows" || arch != "x86" || env != "gnu" || !target.ends_with("-gnullvm") { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); diff --git a/crates/targets/i686_msvc/build.rs b/crates/targets/i686_msvc/build.rs index 0c00b792eb..b5caa2baad 100644 --- a/crates/targets/i686_msvc/build.rs +++ b/crates/targets/i686_msvc/build.rs @@ -1,11 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - if family != "windows" || arch != "x86" || env != "msvc" { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); diff --git a/crates/targets/x86_64_gnu/build.rs b/crates/targets/x86_64_gnu/build.rs index ea4f74aa4d..b5caa2baad 100644 --- a/crates/targets/x86_64_gnu/build.rs +++ b/crates/targets/x86_64_gnu/build.rs @@ -1,12 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - let target = std::env::var("TARGET").unwrap(); - if family != "windows" || arch != "x86_64" || env != "gnu" || !target.ends_with("-gnu") { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); diff --git a/crates/targets/x86_64_gnullvm/build.rs b/crates/targets/x86_64_gnullvm/build.rs index 15b80b8d98..b5caa2baad 100644 --- a/crates/targets/x86_64_gnullvm/build.rs +++ b/crates/targets/x86_64_gnullvm/build.rs @@ -1,12 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - let target = std::env::var("TARGET").unwrap(); - if family != "windows" || arch != "x86_64" || env != "gnu" || !target.ends_with("-gnullvm") { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); diff --git a/crates/targets/x86_64_msvc/build.rs b/crates/targets/x86_64_msvc/build.rs index ae819b9759..b5caa2baad 100644 --- a/crates/targets/x86_64_msvc/build.rs +++ b/crates/targets/x86_64_msvc/build.rs @@ -1,11 +1,4 @@ fn main() { - let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); - let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - if family != "windows" || arch != "x86_64" || env != "msvc" { - return; - } - let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display());