1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
From 7e50215a21b198c73fe575d28c847fd645c4ee40 Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Mon, 17 Sep 2018 02:29:06 +0000
Subject: [PATCH 12/12] Add foxkit target specs
---
.../src/spec/targets/aarch64_foxkit_linux_musl.rs | 11 +++++++++++
.../src/spec/targets/armv7_foxkit_linux_musleabihf.rs | 11 +++++++++++
.../rustc_target/src/spec/targets/i586_foxkit_linux_musl.rs | 11 +++++++++++
compiler/rustc_target/src/spec/mod.rs | 7 +++++++
.../src/spec/targets/powerpc64_foxkit_linux_musl.rs | 11 +++++++++++
.../src/spec/targets/powerpc_foxkit_linux_musl.rs | 11 +++++++++++
.../rustc_target/src/spec/targets/x86_64_foxkit_linux_musl.rs | 11 +++++++++++
7 files changed, 73 insertions(+)
create mode 100644 compiler/rustc_target/src/spec/targets/aarch64_foxkit_linux_musl.rs
create mode 100644 compiler/rustc_target/src/spec/targets/armv7_foxkit_linux_musleabihf.rs
create mode 100644 compiler/rustc_target/src/spec/targets/i586_foxkit_linux_musl.rs
create mode 100644 compiler/rustc_target/src/spec/targets/powerpc64_foxkit_linux_musl.rs
create mode 100644 compiler/rustc_target/src/spec/targets/powerpc_foxkit_linux_musl.rs
create mode 100644 compiler/rustc_target/src/spec/targets/x86_64_foxkit_linux_musl.rs
diff --git a/compiler/rustc_target/src/spec/targets/aarch64_foxkit_linux_musl.rs b/compiler/rustc_target/src/spec/targets/aarch64_foxkit_linux_musl.rs
new file mode 100644
index 00000000000..4bdd51af4fe
--- /dev/null
+++ b/compiler/rustc_target/src/spec/targets/aarch64_foxkit_linux_musl.rs
@@ -0,0 +1,11 @@
+use crate::spec::Target;
+
+pub fn target() -> Target {
+ let mut base = super::aarch64_unknown_linux_musl::target();
+
+ base.llvm_target = "aarch64-foxkit-linux-musl".into();
+ base.vendor = "foxkit".into();
+ base.options.crt_static_default = false;
+
+ base
+}
diff --git a/compiler/rustc_target/src/spec/targets/armv7_foxkit_linux_musleabihf.rs b/compiler/rustc_target/src/spec/targets/armv7_foxkit_linux_musleabihf.rs
new file mode 100644
index 00000000000..994f3c39e7c
--- /dev/null
+++ b/compiler/rustc_target/src/spec/targets/armv7_foxkit_linux_musleabihf.rs
@@ -0,0 +1,11 @@
+use crate::spec::Target;
+
+pub fn target() -> Target {
+ let mut base = super::armv7_unknown_linux_musleabihf::target();
+
+ base.llvm_target = "armv7-foxkit-linux-musleabihf".into();
+ base.vendor = "foxkit".into();
+ base.options.crt_static_default = false;
+
+ base
+}
diff --git a/compiler/rustc_target/src/spec/targets/i586_foxkit_linux_musl.rs b/compiler/rustc_target/src/spec/targets/i586_foxkit_linux_musl.rs
new file mode 100644
index 00000000000..028e4b5e930
--- /dev/null
+++ b/compiler/rustc_target/src/spec/targets/i586_foxkit_linux_musl.rs
@@ -0,0 +1,11 @@
+use crate::spec::Target;
+
+pub fn target() -> Target {
+ let mut base = super::i586_unknown_linux_musl::target();
+
+ base.llvm_target = "i586-foxkit-linux-musl".into();
+ base.vendor = "foxkit".into();
+ base.options.crt_static_default = false;
+
+ base
+}
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
index 92678aed5b1..66a408d0b36 100644
--- a/compiler/rustc_target/src/spec/mod.rs
+++ b/compiler/rustc_target/src/spec/mod.rs
@@ -1519,6 +1519,13 @@ fn $module() {
}
supported_targets! {
+ ("aarch64-foxkit-linux-musl", aarch64_foxkit_linux_musl),
+ ("armv7-foxkit-linux-musleabihf", armv7_foxkit_linux_musleabihf),
+ ("i586-foxkit-linux-musl", i586_foxkit_linux_musl),
+ ("powerpc-foxkit-linux-musl", powerpc_foxkit_linux_musl),
+ ("powerpc64-foxkit-linux-musl", powerpc64_foxkit_linux_musl),
+ ("x86_64-foxkit-linux-musl", x86_64_foxkit_linux_musl),
+
("x86_64-unknown-linux-gnu", x86_64_unknown_linux_gnu),
("x86_64-unknown-linux-gnux32", x86_64_unknown_linux_gnux32),
("i686-unknown-linux-gnu", i686_unknown_linux_gnu),
diff --git a/compiler/rustc_target/src/spec/targets/powerpc64_foxkit_linux_musl.rs b/compiler/rustc_target/src/spec/targets/powerpc64_foxkit_linux_musl.rs
new file mode 100644
index 00000000000..04a50f84b60
--- /dev/null
+++ b/compiler/rustc_target/src/spec/targets/powerpc64_foxkit_linux_musl.rs
@@ -0,0 +1,11 @@
+use crate::spec::Target;
+
+pub fn target() -> Target {
+ let mut base = super::powerpc64_unknown_linux_musl::target();
+
+ base.llvm_target = "powerpc64-foxkit-linux-musl".into();
+ base.vendor = "foxkit".into();
+ base.options.crt_static_default = false;
+
+ base
+}
diff --git a/compiler/rustc_target/src/spec/targets/powerpc_foxkit_linux_musl.rs b/compiler/rustc_target/src/spec/targets/powerpc_foxkit_linux_musl.rs
new file mode 100644
index 00000000000..7bca52c4299
--- /dev/null
+++ b/compiler/rustc_target/src/spec/targets/powerpc_foxkit_linux_musl.rs
@@ -0,0 +1,11 @@
+use crate::spec::Target;
+
+pub fn target() -> Target {
+ let mut base = super::powerpc_unknown_linux_musl::target();
+
+ base.llvm_target = "powerpc-foxkit-linux-musl".into();
+ base.vendor = "foxkit".into();
+ base.options.crt_static_default = false;
+
+ base
+}
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_foxkit_linux_musl.rs b/compiler/rustc_target/src/spec/targets/x86_64_foxkit_linux_musl.rs
new file mode 100644
index 00000000000..1ff73687c00
--- /dev/null
+++ b/compiler/rustc_target/src/spec/targets/x86_64_foxkit_linux_musl.rs
@@ -0,0 +1,11 @@
+use crate::spec::Target;
+
+pub fn target() -> Target {
+ let mut base = super::x86_64_unknown_linux_musl::target();
+
+ base.llvm_target = "x86_64-foxkit-linux-musl".into();
+ base.vendor = "foxkit".into();
+ base.options.crt_static_default = false;
+
+ base
+}
--
2.35.1
--- rustc-1.80.0-src/tests/assembly/targets/targets-elf.rs.old 2006-07-23 20:21:28.000000000 -0500
+++ rustc-1.80.0-src/tests/assembly/targets/targets-elf.rs 2024-07-30 09:49:06.031041198 -0500
@@ -9,6 +9,9 @@
//@ revisions: aarch64_be_unknown_netbsd
//@ [aarch64_be_unknown_netbsd] compile-flags: --target aarch64_be-unknown-netbsd
//@ [aarch64_be_unknown_netbsd] needs-llvm-components: aarch64
+//@ revisions: aarch64_foxkit_linux_musl
+//@ [aarch64_foxkit_linux_musl] compile-flags: --target aarch64-foxkit-linux-musl
+//@ [aarch64_foxkit_linux_musl] needs-llvm-components: aarch64
//@ revisions: aarch64_fuchsia
//@ [aarch64_fuchsia] compile-flags: --target aarch64-fuchsia
//@ [aarch64_fuchsia] needs-llvm-components: aarch64
@@ -120,6 +123,9 @@
//@ revisions: armv6k_nintendo_3ds
//@ [armv6k_nintendo_3ds] compile-flags: --target armv6k-nintendo-3ds
//@ [armv6k_nintendo_3ds] needs-llvm-components: arm
+//@ revisions: armv7_foxkit_linux_musleabihf
+//@ [armv7_foxkit_linux_musleabihf] compile-flags: --target armv7-foxkit-linux-musleabihf
+//@ [armv7_foxkit_linux_musleabihf] needs-llvm-components: arm
//@ revisions: armv7_linux_androideabi
//@ [armv7_linux_androideabi] compile-flags: --target armv7-linux-androideabi
//@ [armv7_linux_androideabi] needs-llvm-components: arm
@@ -192,6 +198,9 @@
//@ revisions: hexagon_unknown_none_elf
//@ [hexagon_unknown_none_elf] compile-flags: --target hexagon-unknown-none-elf
//@ [hexagon_unknown_none_elf] needs-llvm-components: hexagon
+//@ revisions: i586_foxkit_linux_musl
+//@ [i586_foxkit_linux_musl] compile-flags: --target i586-foxkit-linux-musl
+//@ [i586_foxkit_linux_musl] needs-llvm-components: x86
//@ revisions: i586_pc_nto_qnx700
//@ [i586_pc_nto_qnx700] compile-flags: --target i586-pc-nto-qnx700
//@ [i586_pc_nto_qnx700] needs-llvm-components: x86
@@ -306,6 +315,9 @@
//@ revisions: msp430_none_elf
//@ [msp430_none_elf] compile-flags: --target msp430-none-elf
//@ [msp430_none_elf] needs-llvm-components: msp430
+//@ revisions: powerpc64_foxkit_linux_musl
+//@ [powerpc64_foxkit_linux_musl] compile-flags: --target powerpc64-foxkit-linux-musl
+//@ [powerpc64_foxkit_linux_musl] needs-llvm-components: powerpc
//@ revisions: powerpc64_unknown_freebsd
//@ [powerpc64_unknown_freebsd] compile-flags: --target powerpc64-unknown-freebsd
//@ [powerpc64_unknown_freebsd] needs-llvm-components: powerpc
@@ -330,6 +342,9 @@
//@ revisions: powerpc64le_unknown_linux_musl
//@ [powerpc64le_unknown_linux_musl] compile-flags: --target powerpc64le-unknown-linux-musl
//@ [powerpc64le_unknown_linux_musl] needs-llvm-components: powerpc
+//@ revisions: powerpc_foxkit_linux_musl
+//@ [powerpc_foxkit_linux_musl] compile-flags: --target powerpc-foxkit-linux-musl
+//@ [powerpc_foxkit_linux_musl] needs-llvm-components: powerpc
//@ revisions: powerpc_unknown_freebsd
//@ [powerpc_unknown_freebsd] compile-flags: --target powerpc-unknown-freebsd
//@ [powerpc_unknown_freebsd] needs-llvm-components: powerpc
@@ -507,6 +522,9 @@
//@ revisions: x86_64_fortanix_unknown_sgx
//@ [x86_64_fortanix_unknown_sgx] compile-flags: --target x86_64-fortanix-unknown-sgx
//@ [x86_64_fortanix_unknown_sgx] needs-llvm-components: x86
+//@ revisions: x86_64_foxkit_linux_musl
+//@ [x86_64_foxkit_linux_musl] compile-flags: --target x86_64-foxkit-linux-musl
+//@ [x86_64_foxkit_linux_musl] needs-llvm-components: x86
//@ revisions: x86_64_fuchsia
//@ [x86_64_fuchsia] compile-flags: --target x86_64-fuchsia
//@ [x86_64_fuchsia] needs-llvm-components: x86
|