Skip to content

Commit 39ecd66

Browse files
committedSep 1, 2023
Add gentoo target specs
1 parent 383d169 commit 39ecd66

9 files changed

+99
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::aarch64_unknown_linux_musl::target();
5+
6+
base.llvm_target = "aarch64-gentoo-linux-musl".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::arm_unknown_linux_musleabi::target();
5+
6+
base.llvm_target = "arm-gentoo-linux-musleabi".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::armv7_unknown_linux_musleabihf::target();
5+
6+
base.llvm_target = "armv7a-gentoo-linux-musleabihf".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::i686_unknown_linux_musl::target();
5+
6+
base.llvm_target = "i686-gentoo-linux-musl".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}

‎compiler/rustc_target/src/spec/mod.rs

+11-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,18 @@ macro_rules! supported_targets {
10111011
};
10121012
}
10131013

1014+
mod arm_unknown_linux_musleabi;
1015+
10141016
supported_targets! {
1017+
("aarch64-gentoo-linux-musl", aarch64_gentoo_linux_musl),
1018+
("arm-unknown-linux-musleabi", arm_gentoo_linux_musleabi),
1019+
("armv7a-unknown-linux-musleabihf", armv7a_gentoo_linux_musleabihf),
1020+
("i686-gentoo-linux-musl", i686_gentoo_linux_musl),
1021+
("powerpc-gentoo-linux-musl", powerpc_gentoo_linux_musl),
1022+
("powerpc64-gentoo-linux-musl", powerpc64_gentoo_linux_musl),
1023+
("powerpc64le-gentoo-linux-musl", powerpc64le_gentoo_linux_musl),
1024+
("x86_64-gentoo-linux-musl", x86_64_gentoo_linux_musl),
1025+
10151026
("x86_64-unknown-linux-gnu", x86_64_unknown_linux_gnu),
10161027
("x86_64-unknown-linux-gnux32", x86_64_unknown_linux_gnux32),
10171028
("i686-unknown-linux-gnu", i686_unknown_linux_gnu),
@@ -1040,7 +1051,6 @@ supported_targets! {
10401051
("arm-unknown-linux-gnueabi", arm_unknown_linux_gnueabi),
10411052
("arm-unknown-linux-gnueabihf", arm_unknown_linux_gnueabihf),
10421053
("armeb-unknown-linux-gnueabi", armeb_unknown_linux_gnueabi),
1043-
("arm-unknown-linux-musleabi", arm_unknown_linux_musleabi),
10441054
("arm-unknown-linux-musleabihf", arm_unknown_linux_musleabihf),
10451055
("armv4t-unknown-linux-gnueabi", armv4t_unknown_linux_gnueabi),
10461056
("armv5te-unknown-linux-gnueabi", armv5te_unknown_linux_gnueabi),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::powerpc64_unknown_linux_musl::target();
5+
6+
base.llvm_target = "powerpc64-gentoo-linux-musl".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::powerpc64le_unknown_linux_musl::target();
5+
6+
base.llvm_target = "powerpc64le-gentoo-linux-musl".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::powerpc_unknown_linux_musl::target();
5+
6+
base.llvm_target = "powerpc-gentoo-linux-musl".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use crate::spec::Target;
2+
3+
pub fn target() -> Target {
4+
let mut base = super::x86_64_unknown_linux_musl::target();
5+
6+
base.llvm_target = "x86_64-gentoo-linux-musl".into();
7+
base.vendor = "gentoo".into();
8+
base.options.crt_static_default = false;
9+
10+
base
11+
}

0 commit comments

Comments
 (0)
Please sign in to comment.