Skip to content

Commit

Permalink
rustc: Change target_env for ARM targets to gnu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexcrichton committed May 4, 2016
1 parent 3157691 commit 29875c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_back/target/arm_unknown_linux_gnueabi.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_back/target/arm_unknown_linux_gnueabihf.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 29875c2

Please sign in to comment.