Skip to content

Commit 833fe4a

Browse files
committed
WIP: Use the in-tree compiler-builtins for the sysroot
1 parent 59aa1e8 commit 833fe4a

File tree

7 files changed

+42
-30
lines changed

7 files changed

+42
-30
lines changed

library/Cargo.lock

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.24.2"
88
source = "registry+https://github.com/rust-lang/crates.io-index"
99
checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
1010
dependencies = [
11-
"compiler_builtins",
11+
"compiler_builtins 0.1.160",
1212
"gimli",
1313
"rustc-std-workspace-alloc",
1414
"rustc-std-workspace-core",
@@ -20,15 +20,15 @@ version = "2.0.0"
2020
source = "registry+https://github.com/rust-lang/crates.io-index"
2121
checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
2222
dependencies = [
23-
"compiler_builtins",
23+
"compiler_builtins 0.1.160",
2424
"rustc-std-workspace-core",
2525
]
2626

2727
[[package]]
2828
name = "alloc"
2929
version = "0.0.0"
3030
dependencies = [
31-
"compiler_builtins",
31+
"compiler_builtins 0.1.159",
3232
"core",
3333
]
3434

@@ -55,7 +55,16 @@ version = "1.0.0"
5555
source = "registry+https://github.com/rust-lang/crates.io-index"
5656
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
5757
dependencies = [
58-
"compiler_builtins",
58+
"compiler_builtins 0.1.160",
59+
"rustc-std-workspace-core",
60+
]
61+
62+
[[package]]
63+
name = "compiler_builtins"
64+
version = "0.1.159"
65+
dependencies = [
66+
"cc",
67+
"panic-handler",
5968
"rustc-std-workspace-core",
6069
]
6170

@@ -65,7 +74,6 @@ version = "0.1.160"
6574
source = "registry+https://github.com/rust-lang/crates.io-index"
6675
checksum = "6376049cfa92c0aa8b9ac95fae22184b981c658208d4ed8a1dc553cd83612895"
6776
dependencies = [
68-
"cc",
6977
"rustc-std-workspace-core",
7078
]
7179

@@ -88,7 +96,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
8896
checksum = "8cff88b751e7a276c4ab0e222c3f355190adc6dde9ce39c851db39da34990df7"
8997
dependencies = [
9098
"cfg-if",
91-
"compiler_builtins",
99+
"compiler_builtins 0.1.160",
92100
"libc",
93101
"rustc-std-workspace-core",
94102
"windows-sys",
@@ -100,7 +108,7 @@ version = "0.5.0"
100108
source = "registry+https://github.com/rust-lang/crates.io-index"
101109
checksum = "57cafc2274c10fab234f176b25903ce17e690fca7597090d50880e047a0389c5"
102110
dependencies = [
103-
"compiler_builtins",
111+
"compiler_builtins 0.1.160",
104112
"rustc-std-workspace-core",
105113
]
106114

@@ -121,7 +129,7 @@ version = "0.31.1"
121129
source = "registry+https://github.com/rust-lang/crates.io-index"
122130
checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
123131
dependencies = [
124-
"compiler_builtins",
132+
"compiler_builtins 0.1.160",
125133
"rustc-std-workspace-alloc",
126134
"rustc-std-workspace-core",
127135
]
@@ -132,7 +140,7 @@ version = "0.15.3"
132140
source = "registry+https://github.com/rust-lang/crates.io-index"
133141
checksum = "84b26c544d002229e640969970a2e74021aadf6e2f96372b9c58eff97de08eb3"
134142
dependencies = [
135-
"compiler_builtins",
143+
"compiler_builtins 0.1.160",
136144
"rustc-std-workspace-alloc",
137145
"rustc-std-workspace-core",
138146
]
@@ -143,7 +151,7 @@ version = "0.5.1"
143151
source = "registry+https://github.com/rust-lang/crates.io-index"
144152
checksum = "f154ce46856750ed433c8649605bf7ed2de3bc35fd9d2a9f30cddd873c80cb08"
145153
dependencies = [
146-
"compiler_builtins",
154+
"compiler_builtins 0.1.160",
147155
"rustc-std-workspace-alloc",
148156
"rustc-std-workspace-core",
149157
]
@@ -163,7 +171,7 @@ version = "2.7.4"
163171
source = "registry+https://github.com/rust-lang/crates.io-index"
164172
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
165173
dependencies = [
166-
"compiler_builtins",
174+
"compiler_builtins 0.1.160",
167175
"rustc-std-workspace-core",
168176
]
169177

@@ -174,7 +182,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
174182
checksum = "3be647b768db090acb35d5ec5db2b0e1f1de11133ca123b9eacf5137868f892a"
175183
dependencies = [
176184
"adler2",
177-
"compiler_builtins",
185+
"compiler_builtins 0.1.160",
178186
"rustc-std-workspace-alloc",
179187
"rustc-std-workspace-core",
180188
]
@@ -185,18 +193,22 @@ version = "0.36.7"
185193
source = "registry+https://github.com/rust-lang/crates.io-index"
186194
checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
187195
dependencies = [
188-
"compiler_builtins",
196+
"compiler_builtins 0.1.160",
189197
"memchr",
190198
"rustc-std-workspace-alloc",
191199
"rustc-std-workspace-core",
192200
]
193201

202+
[[package]]
203+
name = "panic-handler"
204+
version = "0.1.0"
205+
194206
[[package]]
195207
name = "panic_abort"
196208
version = "0.0.0"
197209
dependencies = [
198210
"alloc",
199-
"compiler_builtins",
211+
"compiler_builtins 0.1.159",
200212
"core",
201213
"libc",
202214
]
@@ -207,7 +219,7 @@ version = "0.0.0"
207219
dependencies = [
208220
"alloc",
209221
"cfg-if",
210-
"compiler_builtins",
222+
"compiler_builtins 0.1.159",
211223
"core",
212224
"libc",
213225
"unwind",
@@ -235,7 +247,7 @@ version = "5.2.0"
235247
source = "registry+https://github.com/rust-lang/crates.io-index"
236248
checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5"
237249
dependencies = [
238-
"compiler_builtins",
250+
"compiler_builtins 0.1.160",
239251
"rustc-std-workspace-core",
240252
]
241253

@@ -245,7 +257,7 @@ version = "2.0.0"
245257
source = "registry+https://github.com/rust-lang/crates.io-index"
246258
checksum = "e43c53ff1a01d423d1cb762fd991de07d32965ff0ca2e4f80444ac7804198203"
247259
dependencies = [
248-
"compiler_builtins",
260+
"compiler_builtins 0.1.160",
249261
"r-efi",
250262
"rustc-std-workspace-core",
251263
]
@@ -280,7 +292,7 @@ version = "0.1.24"
280292
source = "registry+https://github.com/rust-lang/crates.io-index"
281293
checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
282294
dependencies = [
283-
"compiler_builtins",
295+
"compiler_builtins 0.1.160",
284296
"rustc-std-workspace-core",
285297
]
286298

@@ -327,7 +339,7 @@ dependencies = [
327339
"addr2line",
328340
"alloc",
329341
"cfg-if",
330-
"compiler_builtins",
342+
"compiler_builtins 0.1.159",
331343
"core",
332344
"dlmalloc",
333345
"fortanix-sgx-abi",
@@ -354,7 +366,7 @@ name = "std_detect"
354366
version = "0.1.5"
355367
dependencies = [
356368
"cfg-if",
357-
"compiler_builtins",
369+
"compiler_builtins 0.1.160",
358370
"libc",
359371
"rustc-std-workspace-alloc",
360372
"rustc-std-workspace-core",
@@ -386,7 +398,7 @@ version = "0.1.14"
386398
source = "registry+https://github.com/rust-lang/crates.io-index"
387399
checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
388400
dependencies = [
389-
"compiler_builtins",
401+
"compiler_builtins 0.1.160",
390402
"rustc-std-workspace-core",
391403
"rustc-std-workspace-std",
392404
]
@@ -396,7 +408,7 @@ name = "unwind"
396408
version = "0.0.0"
397409
dependencies = [
398410
"cfg-if",
399-
"compiler_builtins",
411+
"compiler_builtins 0.1.159",
400412
"core",
401413
"libc",
402414
"unwinding",
@@ -408,7 +420,7 @@ version = "0.2.6"
408420
source = "registry+https://github.com/rust-lang/crates.io-index"
409421
checksum = "8393f2782b6060a807337ff353780c1ca15206f9ba2424df18cb6e733bd7b345"
410422
dependencies = [
411-
"compiler_builtins",
423+
"compiler_builtins 0.1.160",
412424
"gimli",
413425
"rustc-std-workspace-core",
414426
]
@@ -419,7 +431,7 @@ version = "0.11.0+wasi-snapshot-preview1"
419431
source = "registry+https://github.com/rust-lang/crates.io-index"
420432
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
421433
dependencies = [
422-
"compiler_builtins",
434+
"compiler_builtins 0.1.160",
423435
"rustc-std-workspace-alloc",
424436
"rustc-std-workspace-core",
425437
]

library/alloc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ bench = false
1616

1717
[dependencies]
1818
core = { path = "../core", public = true }
19-
compiler_builtins = { version = "=0.1.160", features = ['rustc-dep-of-std'] }
19+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins", features = ['rustc-dep-of-std'] }
2020

2121
[features]
2222
compiler-builtins-mem = ['compiler_builtins/mem']

library/compiler-builtins/compiler-builtins/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage = "https://github.com/rust-lang/compiler-builtins"
99
documentation = "https://docs.rs/compiler_builtins"
1010
edition = "2021"
1111
description = "Compiler intrinsics used by the Rust compiler."
12-
links = "compiler-rt"
12+
# links = "compiler-rt"
1313

1414
[lib]
1515
bench = false

library/panic_abort/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doc = false
1313

1414
[dependencies]
1515
core = { path = "../core" }
16-
compiler_builtins = "0.1.0"
16+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins" }
1717

1818
[target.'cfg(target_os = "android")'.dependencies]
1919
libc = { version = "0.2", default-features = false }

library/panic_unwind/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ doc = false
1515
alloc = { path = "../alloc" }
1616
core = { path = "../core" }
1717
unwind = { path = "../unwind" }
18-
compiler_builtins = "0.1.0"
18+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins" }
1919
cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
2020

2121
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]

library/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
1818
panic_unwind = { path = "../panic_unwind", optional = true }
1919
panic_abort = { path = "../panic_abort" }
2020
core = { path = "../core", public = true }
21-
compiler_builtins = { version = "=0.1.160" }
21+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins" }
2222
unwind = { path = "../unwind" }
2323
hashbrown = { version = "0.15", default-features = false, features = [
2424
'rustc-dep-of-std',

library/unwind/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ doc = false
1515

1616
[dependencies]
1717
core = { path = "../core" }
18-
compiler_builtins = "0.1.0"
18+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins" }
1919
cfg-if = "1.0"
2020

2121
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]

0 commit comments

Comments
 (0)