Skip to content

Commit ca17a91

Browse files
committed
rustc_target: Move target env "gnu" from linux_base to linux_gnu_base
1 parent 38030ff commit ca17a91

32 files changed

+35
-30
lines changed

compiler/rustc_target/src/spec/aarch64_unknown_linux_gnu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::spec::{Target, TargetOptions};
22

33
pub fn target() -> Target {
4-
let mut base = super::linux_base::opts();
4+
let mut base = super::linux_gnu_base::opts();
55
base.max_atomic_width = Some(128);
66

77
Target {

compiler/rustc_target/src/spec/android_base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::spec::{LinkerFlavor, TargetOptions};
22

33
pub fn opts() -> TargetOptions {
4-
let mut base = super::linux_base::opts();
4+
let mut base = super::linux_gnu_base::opts();
55
base.os = "android".to_string();
66
// Many of the symbols defined in compiler-rt are also defined in libgcc.
77
// Android's linker doesn't like that by default.

compiler/rustc_target/src/spec/arm_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::spec::{Target, TargetOptions};
22

33
pub fn target() -> Target {
4-
let mut base = super::linux_base::opts();
4+
let mut base = super::linux_gnu_base::opts();
55
base.max_atomic_width = Some(64);
66
Target {
77
llvm_target: "arm-unknown-linux-gnueabi".to_string(),

compiler/rustc_target/src/spec/arm_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::spec::{Target, TargetOptions};
22

33
pub fn target() -> Target {
4-
let mut base = super::linux_base::opts();
4+
let mut base = super::linux_gnu_base::opts();
55
base.max_atomic_width = Some(64);
66
Target {
77
llvm_target: "arm-unknown-linux-gnueabihf".to_string(),

compiler/rustc_target/src/spec/armv4t_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::spec::{Target, TargetOptions};
22

33
pub fn target() -> Target {
4-
let base = super::linux_base::opts();
4+
let base = super::linux_gnu_base::opts();
55
Target {
66
llvm_target: "armv4t-unknown-linux-gnueabi".to_string(),
77
pointer_width: 32,

compiler/rustc_target/src/spec/armv5te_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::spec::{Target, TargetOptions};
22

33
pub fn target() -> Target {
4-
let base = super::linux_base::opts();
4+
let base = super::linux_gnu_base::opts();
55
Target {
66
llvm_target: "armv5te-unknown-linux-gnueabi".to_string(),
77
pointer_width: 32,

compiler/rustc_target/src/spec/armv7_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::spec::{Target, TargetOptions};
44
// hardfloat.
55

66
pub fn target() -> Target {
7-
let base = super::linux_base::opts();
7+
let base = super::linux_gnu_base::opts();
88
Target {
99
llvm_target: "armv7-unknown-linux-gnueabi".to_string(),
1010
pointer_width: 32,

compiler/rustc_target/src/spec/armv7_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::spec::{Target, TargetOptions};
44
// thumb-mode. See the thumbv7neon variant for enabling both.
55

66
pub fn target() -> Target {
7-
let base = super::linux_base::opts();
7+
let base = super::linux_gnu_base::opts();
88
Target {
99
llvm_target: "armv7-unknown-linux-gnueabihf".to_string(),
1010
pointer_width: 32,

compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::spec::{LinkerFlavor, Target};
22

33
pub fn target() -> Target {
4-
let mut base = super::linux_base::opts();
4+
let mut base = super::linux_gnu_base::opts();
55
base.cpu = "pentium4".to_string();
66
base.max_atomic_width = Some(64);
77
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string());

compiler/rustc_target/src/spec/linux_base.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub fn opts() -> TargetOptions {
2020

2121
TargetOptions {
2222
os: "linux".to_string(),
23-
env: "gnu".to_string(),
2423
dynamic_linking: true,
2524
executables: true,
2625
os_family: Some("unix".to_string()),

0 commit comments

Comments
 (0)