-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #117702 - davidtwco:target-tier-refactors, r=petroche…
…nkov target: move base and target specifications Follow-up to #116004. In anticipation of later PRs where we'll want to add tidy checks to ensure that, for each target, we have a test or a platform support document or something like that, this PR moves target specifications into a directory on their own so that we can just list the files in this directory to get a list of all targets. - Base specifications are moved to `rustc_target::spec::base`. - Target specifications are moved to `rustc_target::spec::targets`. - All the other source files containing types used in the target specs remain in `rustc_target::spec`. - `rustc_target/src/spec/abi.rs` is moved to `rustc_target/src/spec/abi/mod.rs` (where there was already a `tests.rs`) for uniformity. r? ``@petrochenkov``
- Loading branch information
Showing
274 changed files
with
479 additions
and
475 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ler/rustc_target/src/spec/android_base.rs → ...ler/rustc_target/src/spec/base/android.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...iler/rustc_target/src/spec/apple/tests.rs → ...rustc_target/src/spec/base/apple/tests.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use crate::spec::{base, TargetOptions}; | ||
|
||
pub fn opts() -> TargetOptions { | ||
TargetOptions { env: "gnu".into(), ..base::hurd::opts() } | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use crate::spec::{base, TargetOptions}; | ||
|
||
pub fn opts() -> TargetOptions { | ||
TargetOptions { env: "gnu".into(), ..base::linux::opts() } | ||
} |
4 changes: 2 additions & 2 deletions
4
.../rustc_target/src/spec/linux_musl_base.rs → .../rustc_target/src/spec/base/linux_musl.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../rustc_target/src/spec/linux_ohos_base.rs → .../rustc_target/src/spec/base/linux_ohos.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use crate::spec::{base, TargetOptions}; | ||
|
||
pub fn opts() -> TargetOptions { | ||
TargetOptions { env: "uclibc".into(), ..base::linux::opts() } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pub(crate) mod aix; | ||
pub(crate) mod android; | ||
pub(crate) mod apple; | ||
pub(crate) mod avr_gnu; | ||
pub(crate) mod bpf; | ||
pub(crate) mod dragonfly; | ||
pub(crate) mod freebsd; | ||
pub(crate) mod fuchsia; | ||
pub(crate) mod haiku; | ||
pub(crate) mod hermit; | ||
pub(crate) mod hurd; | ||
pub(crate) mod hurd_gnu; | ||
pub(crate) mod illumos; | ||
pub(crate) mod l4re; | ||
pub(crate) mod linux; | ||
pub(crate) mod linux_gnu; | ||
pub(crate) mod linux_musl; | ||
pub(crate) mod linux_ohos; | ||
pub(crate) mod linux_uclibc; | ||
pub(crate) mod msvc; | ||
pub(crate) mod netbsd; | ||
pub(crate) mod nto_qnx; | ||
pub(crate) mod openbsd; | ||
pub(crate) mod redox; | ||
pub(crate) mod solaris; | ||
pub(crate) mod solid; | ||
pub(crate) mod teeos; | ||
pub(crate) mod thumb; | ||
pub(crate) mod uefi_msvc; | ||
pub(crate) mod unikraft_linux_musl; | ||
pub(crate) mod vxworks; | ||
pub(crate) mod wasm; | ||
pub(crate) mod windows_gnu; | ||
pub(crate) mod windows_gnullvm; | ||
pub(crate) mod windows_msvc; | ||
pub(crate) mod windows_uwp_gnu; | ||
pub(crate) mod windows_uwp_msvc; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
compiler/rustc_target/src/spec/solid_base.rs → compiler/rustc_target/src/spec/base/solid.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
compiler/rustc_target/src/spec/teeos_base.rs → compiler/rustc_target/src/spec/base/teeos.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ustc_target/src/spec/windows_msvc_base.rs → ...ustc_target/src/spec/base/windows_msvc.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
..._target/src/spec/windows_uwp_msvc_base.rs → ..._target/src/spec/base/windows_uwp_msvc.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c_target/src/spec/aarch64_apple_darwin.rs → .../src/spec/targets/aarch64_apple_darwin.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ustc_target/src/spec/aarch64_apple_ios.rs → ...get/src/spec/targets/aarch64_apple_ios.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rget/src/spec/aarch64_apple_ios_macabi.rs → .../spec/targets/aarch64_apple_ios_macabi.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._target/src/spec/aarch64_apple_ios_sim.rs → ...src/spec/targets/aarch64_apple_ios_sim.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...stc_target/src/spec/aarch64_apple_tvos.rs → ...et/src/spec/targets/aarch64_apple_tvos.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...target/src/spec/aarch64_apple_tvos_sim.rs → ...rc/spec/targets/aarch64_apple_tvos_sim.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.