about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-05-04 10:14:36 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-05-04 10:14:36 -0700
commit29875c2e5e5b264f5e8f3c086b38a77a38b327cd (patch)
tree5140ee2c09fa7e20031d86a0abacdee75b4ad0d9
parent3157691f963a86776cb7e6a7842f566032890aba (diff)
downloadrust-29875c2e5e5b264f5e8f3c086b38a77a38b327cd.tar.gz
rust-29875c2e5e5b264f5e8f3c086b38a77a38b327cd.zip
rustc: Change target_env for ARM targets to `gnu`
Right now they're `gnueabihf` and `gnueabi`, but when adding new platforms like
musl on ARM it's unfortunate to have to test for all three (`musl`, `musleabi`,
and `musleabihf`). This PR switches everything currently to `gnu`, and the new
musl targets can also use `musl` when they land.

Closes #33244
-rw-r--r--src/librustc_back/target/arm_unknown_linux_gnueabi.rs2
-rw-r--r--src/librustc_back/target/arm_unknown_linux_gnueabihf.rs2
-rw-r--r--src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_back/target/arm_unknown_linux_gnueabi.rs b/src/librustc_back/target/arm_unknown_linux_gnueabi.rs
index 0cb0949d462..29ab7120389 100644
--- a/src/librustc_back/target/arm_unknown_linux_gnueabi.rs
+++ b/src/librustc_back/target/arm_unknown_linux_gnueabi.rs
@@ -19,7 +19,7 @@ pub fn target() -> Target {
         data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
         arch: "arm".to_string(),
         target_os: "linux".to_string(),
-        target_env: "gnueabi".to_string(),
+        target_env: "gnu".to_string(),
         target_vendor: "unknown".to_string(),
 
         options: TargetOptions {
diff --git a/src/librustc_back/target/arm_unknown_linux_gnueabihf.rs b/src/librustc_back/target/arm_unknown_linux_gnueabihf.rs
index 05b9401a063..8ca7c23eb55 100644
--- a/src/librustc_back/target/arm_unknown_linux_gnueabihf.rs
+++ b/src/librustc_back/target/arm_unknown_linux_gnueabihf.rs
@@ -19,7 +19,7 @@ pub fn target() -> Target {
         data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
         arch: "arm".to_string(),
         target_os: "linux".to_string(),
-        target_env: "gnueabihf".to_string(),
+        target_env: "gnu".to_string(),
         target_vendor: "unknown".to_string(),
 
         options: TargetOptions {
diff --git a/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs b/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
index 9c9bb72f76c..549da058d51 100644
--- a/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
+++ b/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
@@ -19,7 +19,7 @@ pub fn target() -> Target {
         data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
         arch: "arm".to_string(),
         target_os: "linux".to_string(),
-        target_env: "gnueabihf".to_string(),
+        target_env: "gnu".to_string(),
         target_vendor: "unknown".to_string(),
 
         options: TargetOptions {