Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 76aa83e

Browse files
committed
target: move base specs to spec/base
Signed-off-by: David Wood <david@davidtw.co>
1 parent 0d5ec96 commit 76aa83e

File tree

229 files changed

+453
-449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+453
-449
lines changed

compiler/rustc_target/src/spec/aarch64_apple_darwin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::apple_base::{macos_llvm_target, opts, Arch};
1+
use crate::spec::base::apple::{macos_llvm_target, opts, Arch};
22
use crate::spec::{FramePointer, SanitizerSet, Target, TargetOptions};
33

44
pub fn target() -> Target {

compiler/rustc_target/src/spec/aarch64_apple_ios.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::apple_base::{ios_llvm_target, opts, Arch};
1+
use crate::spec::base::apple::{ios_llvm_target, opts, Arch};
22
use crate::spec::{FramePointer, SanitizerSet, Target, TargetOptions};
33

44
pub fn target() -> Target {

compiler/rustc_target/src/spec/aarch64_apple_ios_macabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::apple_base::{opts, Arch};
1+
use crate::spec::base::apple::{opts, Arch};
22
use crate::spec::{Cc, FramePointer, LinkerFlavor, Lld, SanitizerSet, Target, TargetOptions};
33

44
pub fn target() -> Target {

compiler/rustc_target/src/spec/aarch64_apple_ios_sim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::apple_base::{ios_sim_llvm_target, opts, Arch};
1+
use crate::spec::base::apple::{ios_sim_llvm_target, opts, Arch};
22
use crate::spec::{FramePointer, SanitizerSet, Target, TargetOptions};
33

44
pub fn target() -> Target {

compiler/rustc_target/src/spec/aarch64_apple_tvos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::apple_base::{opts, tvos_llvm_target, Arch};
1+
use crate::spec::base::apple::{opts, tvos_llvm_target, Arch};
22
use crate::spec::{FramePointer, Target, TargetOptions};
33

44
pub fn target() -> Target {

compiler/rustc_target/src/spec/aarch64_apple_tvos_sim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::apple_base::{opts, tvos_sim_llvm_target, Arch};
1+
use crate::spec::base::apple::{opts, tvos_sim_llvm_target, Arch};
22
use crate::spec::{FramePointer, Target, TargetOptions};
33

44
pub fn target() -> Target {

compiler/rustc_target/src/spec/aarch64_apple_watchos_sim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::apple_base::{opts, watchos_sim_llvm_target, Arch};
1+
use crate::spec::base::apple::{opts, watchos_sim_llvm_target, Arch};
22
use crate::spec::{FramePointer, Target, TargetOptions};
33

44
pub fn target() -> Target {

compiler/rustc_target/src/spec/aarch64_be_unknown_linux_gnu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::abi::Endian;
2-
use crate::spec::{Target, TargetOptions};
2+
use crate::spec::{base, Target, TargetOptions};
33

44
pub fn target() -> Target {
55
Target {
@@ -12,7 +12,7 @@ pub fn target() -> Target {
1212
max_atomic_width: Some(128),
1313
mcount: "\u{1}_mcount".into(),
1414
endian: Endian::Big,
15-
..super::linux_gnu_base::opts()
15+
..base::linux_gnu::opts()
1616
},
1717
}
1818
}

compiler/rustc_target/src/spec/aarch64_be_unknown_linux_gnu_ilp32.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::abi::Endian;
2-
use crate::spec::{Target, TargetOptions};
2+
use crate::spec::{base, Target, TargetOptions};
33

44
pub fn target() -> Target {
5-
let mut base = super::linux_gnu_base::opts();
5+
let mut base = base::linux_gnu::opts();
66
base.max_atomic_width = Some(128);
77

88
Target {

compiler/rustc_target/src/spec/aarch64_be_unknown_netbsd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::abi::Endian;
2-
use crate::spec::{Target, TargetOptions};
2+
use crate::spec::{base, Target, TargetOptions};
33

44
pub fn target() -> Target {
55
Target {
@@ -11,7 +11,7 @@ pub fn target() -> Target {
1111
mcount: "__mcount".into(),
1212
max_atomic_width: Some(128),
1313
endian: Endian::Big,
14-
..super::netbsd_base::opts()
14+
..base::netbsd::opts()
1515
},
1616
}
1717
}

0 commit comments

Comments
 (0)