Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync rustc_codegen_cranelift #109169

Merged
merged 108 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
36cd4fa
Add `round_ties_even` to `f32` and `f64`
Jules-Bertholet Mar 25, 2022
20d6292
Use rint instead of roundeven
Jules-Bertholet Nov 7, 2022
56951e4
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_…
bjorn3 Feb 9, 2023
bbf3900
Merge branch 'sync_from_rust'
bjorn3 Feb 9, 2023
bdb0665
Avoid spurious visible_parent_map query invocation
bjorn3 Feb 9, 2023
7870b29
Remove a couple of duplicate layout_of and monomorphize calls
bjorn3 Feb 9, 2023
4a1c2d9
Fix signaling available_token_condvar when a new token is received
bjorn3 Feb 10, 2023
1a072c5
clippy::perf fixes
matthiaskrgr Feb 10, 2023
291cadb
Merge pull request #1355 from matthiaskrgr/clippy_perf
bjorn3 Feb 10, 2023
0b62b64
clippy::complexity fixes
matthiaskrgr Feb 10, 2023
efd33c5
Merge pull request #1356 from matthiaskrgr/clippy_compl
bjorn3 Feb 10, 2023
c95eca2
Alias folding/visiting traits instead of re-export
eggyal Feb 9, 2023
14bc2e6
s/eval_usize/eval_target_usize/ for clarity
oli-obk Feb 14, 2023
72c6655
Sync from rust e9ab7872fd77861e3d182ea85a82c4649c5bb3f8
bjorn3 Feb 14, 2023
478bc5b
Rustup to rustc 1.69.0-nightly (065852def 2023-02-13)
bjorn3 Feb 14, 2023
5bf5153
Fix non-dynamic indexing into vector types
bjorn3 Feb 14, 2023
c756108
Make permit_uninit/zero_init fallible
compiler-errors Feb 14, 2023
9b99a58
Auto merge of #108012 - compiler-errors:issue-107999, r=oli-obk
bors Feb 15, 2023
f58bd0e
`if $c:expr { Some($r:expr) } else { None }` =>> `$c.then(|| $r)`
WaffleLapkin Feb 15, 2023
8fe8e53
Replace `mk_foo` calls with `infer_foo` where possible.
nnethercote Feb 16, 2023
afcdf57
Sync from rust 0416b1a6f
bjorn3 Feb 17, 2023
9491031
Rustup to rustc 1.69.0-nightly (0416b1a6f 2023-02-14)
bjorn3 Feb 17, 2023
8ed6baa
Rustup to rustc 1.69.0-nightly (2d14db321 2023-02-15)
bjorn3 Feb 17, 2023
8e5a9bb
Sync from rust 9a7cc6c32f1a690f86827e4724bcda85e506ef35
bjorn3 Feb 17, 2023
3c5d5ba
Rustup to rustc 1.69.0-nightly (9a7cc6c32 2023-02-16)
bjorn3 Feb 17, 2023
718574a
Support updating to specific dates in rustup.sh
bjorn3 Feb 17, 2023
cdf4f42
Remove easy_call
bjorn3 Feb 16, 2023
e58bb2a
Use new abi for 128bit int to float cast intrinsics on Windows
bjorn3 Feb 6, 2023
7bd3b77
Add fixme
bjorn3 Feb 16, 2023
ede7cde
Move windows i128 argument by-ref handling to lib_call
bjorn3 Feb 17, 2023
c6a0d37
Move windows i128 indirect return handling to lib_call
bjorn3 Feb 17, 2023
29ad465
Fix float to int compiler builtin call abi
bjorn3 Feb 17, 2023
5464809
Update to compiler-builtins 0.1.87
bjorn3 Feb 17, 2023
dd5ffc2
Split out lib_call_unadjusted function
bjorn3 Feb 17, 2023
a7c0cfc
Fix return address type
bjorn3 Feb 17, 2023
90a7ee6
Check output of checked_div in std_example
bjorn3 Feb 18, 2023
4991d08
Remove incorrect check in lib_call
bjorn3 Feb 18, 2023
bb933d2
Fix abi for checked multiplication
bjorn3 Feb 18, 2023
cb12ad7
Merge pull request #1359 from bjorn3/fix_llvm14-builtins-abi
bjorn3 Feb 18, 2023
39068eb
Adapt cg_clif.
cjgillot Feb 15, 2023
8996171
Stop implementing _with_overflow intrinsics in codegen backends.
cjgillot Feb 18, 2023
0134916
Sync from rust 4507fdaaa27ea2fb59a41df2ce7d1f290da53dae
bjorn3 Feb 19, 2023
746008e
Rustup to rustc 1.69.0-nightly (4507fdaaa 2023-02-18)
bjorn3 Feb 19, 2023
98ddd69
Add wrappers to dist/bin/ too in addition to dist/
bjorn3 Feb 19, 2023
c794dc7
Enable inline stack probes on riscv64
bjorn3 Feb 19, 2023
b087624
Fix warnings
bjorn3 Feb 19, 2023
9e6dfba
Allow codegen to unsize dyn* to dyn
bjorn3 Feb 19, 2023
ef6df7e
Handle wrappers around dyn* in receiver types
bjorn3 Feb 19, 2023
916a6c1
Update portable-simd
bjorn3 Feb 19, 2023
1af867c
Add test for #1318
bjorn3 Feb 19, 2023
37c269e
Fix typo
bjorn3 Feb 19, 2023
f935dc8
Move abi-cafe runs to a separate workflow
bjorn3 Feb 19, 2023
90298f1
Only allow a single abi-cafe run at a time per branch
bjorn3 Feb 19, 2023
c6f48eb
Fix warning
bjorn3 Feb 19, 2023
5220e60
Rename build job to test
bjorn3 Feb 19, 2023
9265771
Sync from rust 7aa413d59206fd511137728df3d9e0fd377429bd
bjorn3 Feb 20, 2023
10c3c72
Rustup to rustc 1.69.0-nightly (7aa413d59 2023-02-19)
bjorn3 Feb 20, 2023
a563e11
Update Cranelift to 0.93.0
bjorn3 Feb 1, 2023
93fdcfa
various: translation resources from cg backend
davidtwco Oct 17, 2022
d9751e4
Remove type-traversal trait aliases
eggyal Feb 22, 2023
f31fc31
Auto merge of #108340 - eggyal:remove_traversal_trait_aliases, r=oli-obk
bors Feb 22, 2023
4036a57
Unify validity checks into a single query
Noratrieb Feb 22, 2023
eb84167
Rename many interner functions.
nnethercote Feb 17, 2023
d539641
Sync from rust c5c7d2b37780dac1092e75f12ab97dd56c30861d
bjorn3 Feb 25, 2023
fdfa277
Rustup to rustc 1.69.0-nightly (c5c7d2b37 2023-02-24)
bjorn3 Feb 25, 2023
26d0d25
Reduce verbosity of libcore testing
bjorn3 Feb 25, 2023
be19c03
Silence almost all warnings when compiling coretests
bjorn3 Feb 25, 2023
f79601f
Reduce verbosity of rand testing
bjorn3 Feb 25, 2023
a45a81a
Patch coretests separately from the standard library source
bjorn3 Feb 26, 2023
83222f1
Sync from rust 34e6673a0473e90ef01a18eb575392c9e3859747
bjorn3 Feb 26, 2023
91979e0
Rustup to rustc 1.69.0-nightly (34e6673a0 2023-02-25)
bjorn3 Feb 26, 2023
aea3bd6
Re-enable DataflowConstProp for standard library builds
bjorn3 Feb 26, 2023
7a864c8
Update test repo versions
bjorn3 Feb 26, 2023
5e6cde1
Remove --cap-lint warn from regex test
bjorn3 Feb 26, 2023
19ed213
Remove no longer necessary code removing "[codegen mono items]" from …
bjorn3 Feb 26, 2023
b193419
Allow multiple threads and panicking tests when testing regex
bjorn3 Feb 26, 2023
c615e92
Run tests for all crates in the regex workspace
bjorn3 Feb 26, 2023
b88e129
Avoid a duplicate "[TEST] rust-random/rand"
bjorn3 Feb 26, 2023
9e7c646
Merge branch 'staging'
bjorn3 Feb 26, 2023
32317b5
Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compi…
matthiaskrgr Feb 27, 2023
1b57cb6
Unify all validity check intrinsics
Noratrieb Feb 26, 2023
162365e
Fix loading of dylibs not in the search path in jit mode
bjorn3 Feb 28, 2023
cceea84
Sync from rust 44cfafe2fafe816395d3acc434663a45d5178c41
bjorn3 Mar 4, 2023
7bf8636
Rustup to rustc 1.69.0-nightly (44cfafe2f 2023-03-03)
bjorn3 Mar 4, 2023
4be2be2
Rustfmt
bjorn3 Mar 4, 2023
906b00e
Fix rustc test suite
bjorn3 Mar 4, 2023
1ed6b05
Remove copy_nonoverlapping intrinsic definition
bjorn3 Mar 5, 2023
792933c
Auto merge of #95317 - Jules-Bertholet:round_ties_to_even, r=pnkfelix…
bors Mar 7, 2023
bd84d88
Remove DropAndReplace terminator
zeegomo Mar 5, 2023
22237ed
Update Cranelift to 0.93.1
bjorn3 Mar 8, 2023
2ad8e1f
Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko
matthiaskrgr Mar 8, 2023
0738ffe
replace legacy copyright annotations in submodules
pietroalbini Nov 17, 2022
82e6750
Introduce a no-op PlaceMention statement for `let _ =`.
cjgillot Sep 6, 2022
f2c81bb
Don't export of __rust_* alloc symbols if not codegened
chbaker0 Feb 13, 2023
81f9dc2
Sync from rust 39f2657d1101b50f9b71ae460b762d330cc8426b
bjorn3 Mar 10, 2023
e781db8
Rustup to rustc 1.70.0-nightly (39f2657d1 2023-03-09)
bjorn3 Mar 10, 2023
0b9e8c6
Fix rustc test suite
bjorn3 Mar 10, 2023
b23a3a3
Rollup merge of #108017 - chbaker0:fix-105967, r=chbaker0
matthiaskrgr Mar 10, 2023
be445e1
Auto merge of #104527 - ferrocene:pa-more-licenses, r=pnkfelix
bors Mar 11, 2023
7e23d77
Auto merge of #109001 - matthiaskrgr:rollup-a3agnwp, r=matthiaskrgr
bors Mar 11, 2023
2c122a8
Remove uses of `box_syntax` in rustc and tools
clubby789 Feb 27, 2023
02af3e3
Sync from rust 7b4f48927dce585f747a58083b45ab62b9d73a53
bjorn3 Mar 13, 2023
db6fb61
Rustup to rustc 1.70.0-nightly (7b4f48927 2023-03-12)
bjorn3 Mar 13, 2023
b42358a
Use patched git-subtree from bjorn3/git@tqc-subtree-portable
bjorn3 Mar 15, 2023
6f60071
Introduce Box::new in mini_core
bjorn3 Mar 15, 2023
fed9534
Sync from rust 1716932743a7b3705cbf0c34db0c4e070ed1930d
bjorn3 Mar 15, 2023
dec0daa
Rustup to rustc 1.70.0-nightly (171693274 2023-03-14)
bjorn3 Mar 15, 2023
fce629d
Merge commit 'dec0daa8f6d0a0e1c702f169abb6bf3eee198c67' into sync_cg_…
bjorn3 Mar 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Abi-cafe

on:
- push

jobs:
abi_cafe:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.env.TARGET_TRIPLE }}
cancel-in-progress: true

defaults:
run:
shell: bash

strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
env:
TARGET_TRIPLE: x86_64-unknown-linux-gnu
- os: macos-latest
env:
TARGET_TRIPLE: x86_64-apple-darwin
- os: windows-latest
env:
TARGET_TRIPLE: x86_64-pc-windows-msvc
- os: windows-latest
env:
TARGET_TRIPLE: x86_64-pc-windows-gnu

steps:
- uses: actions/checkout@v3

- name: Cache cargo target dir
uses: actions/cache@v3
with:
path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}

- name: Set MinGW as the default toolchain
if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
run: rustup set default-host x86_64-pc-windows-gnu

- name: Use sparse cargo registry
run: |
cat >> ~/.cargo/config.toml <<EOF
[unstable]
sparse-registry = true
EOF

- name: Prepare dependencies
run: ./y.rs prepare

- name: Build
run: ./y.rs build --sysroot none

- name: Test abi-cafe
env:
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
run: ./y.rs abi-cafe
59 changes: 1 addition & 58 deletions compiler/rustc_codegen_cranelift/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
rustfmt --check build_system/mod.rs


build:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60

Expand Down Expand Up @@ -114,63 +114,6 @@ jobs:
run: ./y.rs test


abi_cafe:
runs-on: ${{ matrix.os }}
timeout-minutes: 60

defaults:
run:
shell: bash

strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
env:
TARGET_TRIPLE: x86_64-unknown-linux-gnu
- os: macos-latest
env:
TARGET_TRIPLE: x86_64-apple-darwin
- os: windows-latest
env:
TARGET_TRIPLE: x86_64-pc-windows-msvc
- os: windows-latest
env:
TARGET_TRIPLE: x86_64-pc-windows-gnu

steps:
- uses: actions/checkout@v3

- name: Cache cargo target dir
uses: actions/cache@v3
with:
path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}

- name: Set MinGW as the default toolchain
if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
run: rustup set default-host x86_64-pc-windows-gnu

- name: Use sparse cargo registry
run: |
cat >> ~/.cargo/config.toml <<EOF
[unstable]
sparse-registry = true
EOF

- name: Prepare dependencies
run: ./y.rs prepare

- name: Build
run: ./y.rs build --sysroot none

- name: Test abi-cafe
env:
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }}
run: ./y.rs abi-cafe


bench:
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_cranelift/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ perf.data.old
/dist
/rust
/download
/git-fixed-subtree.sh
49 changes: 25 additions & 24 deletions compiler/rustc_codegen_cranelift/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"

[[package]]
name = "cranelift-bforest"
version = "0.92.0"
version = "0.93.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f3d54eab028f5805ae3b26fd60eca3f3a9cfb76b989d9bab173be3f61356cc3"
checksum = "a7379abaacee0f14abf3204a7606118f0465785252169d186337bcb75030815a"
dependencies = [
"cranelift-entity",
]

[[package]]
name = "cranelift-codegen"
version = "0.92.0"
version = "0.93.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2be1d5f2c3cca1efb691844bc1988b89c77291f13f778499a3f3c0cf49c0ed61"
checksum = "9489fa336927df749631f1008007ced2871068544f40a202ce6d93fbf2366a7b"
dependencies = [
"arrayvec",
"bumpalo",
Expand All @@ -87,30 +87,30 @@ dependencies = [

[[package]]
name = "cranelift-codegen-meta"
version = "0.92.0"
version = "0.93.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9b1b1089750ce4005893af7ee00bb08a2cf1c9779999c0f7164cbc8ad2e0d2"
checksum = "05bbb67da91ec721ed57cef2f7c5ef7728e1cd9bde9ffd3ef8601022e73e3239"
dependencies = [
"cranelift-codegen-shared",
]

[[package]]
name = "cranelift-codegen-shared"
version = "0.92.0"
version = "0.93.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc5fbaec51de47297fd7304986fd53c8c0030abbe69728a60d72e1c63559318d"
checksum = "418ecb2f36032f6665dc1a5e2060a143dbab41d83b784882e97710e890a7a16d"

[[package]]
name = "cranelift-entity"
version = "0.92.0"
version = "0.93.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dab984c94593f876090fae92e984bdcc74d9b1acf740ab5f79036001c65cba13"
checksum = "7cf583f7b093f291005f9fb1323e2c37f6ee4c7909e39ce016b2e8360d461705"

[[package]]
name = "cranelift-frontend"
version = "0.92.0"
version = "0.93.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e0cb3102d21a2fe5f3210af608748ddd0cd09825ac12d42dc56ed5ed8725fe0"
checksum = "7d361ed0373cf5f086b49c499aa72227b646a64f899f32e34312f97c0fadff75"
dependencies = [
"cranelift-codegen",
"log",
Expand All @@ -120,15 +120,15 @@ dependencies = [

[[package]]
name = "cranelift-isle"
version = "0.92.0"
version = "0.93.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72101dd1f441d629735143c41e00b3428f9267738176983ef588ff43382af0a0"
checksum = "649782a39ce99798dd6b4029e2bb318a2fbeaade1b4fa25330763c10c65bc358"

[[package]]
name = "cranelift-jit"
version = "0.92.0"
version = "0.93.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6557f8ce44d498777f2495aa58d9692a4a37d6f84aa445750d666cef770b6a5c"
checksum = "9c9909222db472fcc98d9e4e7192fa9d064dac63a3fa657df8c6daae86fb2604"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -145,19 +145,19 @@ dependencies = [

[[package]]
name = "cranelift-module"
version = "0.92.0"
version = "0.93.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88807e1c0c47ec02fe433333ccbe56b480425418b1470e333205e11650697d72"
checksum = "68689b83e52e605ba48652882d3fccc2e2e136abf139eb64ae667888ba0d52f8"
dependencies = [
"anyhow",
"cranelift-codegen",
]

[[package]]
name = "cranelift-native"
version = "0.92.0"
version = "0.93.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c22b0d9fcbe3fc5a1af9e7021b44ce42b930bcefac446ce22e02e8f9a0d67120"
checksum = "f98e4e99a353703475d5acb402b9c13482d41d8a4008b352559bd560afb90363"
dependencies = [
"cranelift-codegen",
"libc",
Expand All @@ -166,9 +166,9 @@ dependencies = [

[[package]]
name = "cranelift-object"
version = "0.92.0"
version = "0.93.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "341375758d7c3fedc0b5315f552e6f0feac46baf87c450a15e9455ef47c2b261"
checksum = "b7a006ce1d8dd11df67567d8673e5920f3a56441812aed52a007ffce8f1b20e9"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand Down Expand Up @@ -333,6 +333,7 @@ dependencies = [
"cranelift-frontend",
"cranelift-jit",
"cranelift-module",
"cranelift-native",
"cranelift-object",
"gimli",
"indexmap",
Expand Down Expand Up @@ -381,9 +382,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"

[[package]]
name = "wasmtime-jit-icache-coherence"
version = "5.0.0"
version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08fcba5ebd96da2a9f0747ab6337fe9788adfb3f63fa2c180520d665562d257e"
checksum = "ec1fd0f0dd79e7cc0f55b102e320d7c77ab76cd272008a8fd98e25b5777e2636"
dependencies = [
"cfg-if",
"libc",
Expand Down
14 changes: 6 additions & 8 deletions compiler/rustc_codegen_cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ crate-type = ["dylib"]

[dependencies]
# These have to be in sync with each other
cranelift-codegen = { version = "0.92", features = ["unwind", "all-arch"] }
cranelift-frontend = { version = "0.92" }
cranelift-module = { version = "0.92" }
# NOTE vendored as src/cranelift_native.rs
# FIXME revert back to the external crate with Cranelift 0.93
#cranelift-native = { version = "0.92" }
cranelift-jit = { version = "0.92", optional = true }
cranelift-object = { version = "0.92" }
cranelift-codegen = { version = "0.93", features = ["unwind", "all-arch"] }
cranelift-frontend = { version = "0.93" }
cranelift-module = { version = "0.93" }
cranelift-native = { version = "0.93" }
cranelift-jit = { version = "0.93", optional = true }
cranelift-object = { version = "0.93" }
target-lexicon = "0.12.0"
gimli = { version = "0.26.0", default-features = false, features = ["write"]}
object = { version = "0.29.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
Expand Down
15 changes: 6 additions & 9 deletions compiler/rustc_codegen_cranelift/build_sysroot/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ dependencies = [

[[package]]
name = "compiler_builtins"
version = "0.1.86"
version = "0.1.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5dae98c88e576098d7ab13ebcb40cc43e5114b2beafe61a87cda9200649ff205"
checksum = "9fc9c2080d347a2c316518840ac9194644a9993dfa1e9778ef38979a339f5d8b"
dependencies = [
"rustc-std-workspace-core",
]
Expand Down Expand Up @@ -117,21 +117,20 @@ dependencies = [

[[package]]
name = "hermit-abi"
version = "0.2.6"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7"
checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
dependencies = [
"compiler_builtins",
"libc",
"rustc-std-workspace-alloc",
"rustc-std-workspace-core",
]

[[package]]
name = "libc"
version = "0.2.139"
version = "0.2.140"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c"
dependencies = [
"rustc-std-workspace-core",
]
Expand Down Expand Up @@ -282,10 +281,8 @@ dependencies = [
name = "test"
version = "0.0.0"
dependencies = [
"cfg-if",
"core",
"getopts",
"libc",
"panic_abort",
"panic_unwind",
"proc_macro",
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_cranelift/build_sysroot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ alloc = { path = "./sysroot_src/library/alloc" }
std = { path = "./sysroot_src/library/std", features = ["panic_unwind", "backtrace"] }
test = { path = "./sysroot_src/library/test" }

compiler_builtins = { version = "0.1.39", default-features = false, features = ["no-asm"] }
compiler_builtins = { version = "0.1.87", default-features = false, features = ["no-asm"] }

[patch.crates-io]
rustc-std-workspace-core = { path = "./sysroot_src/library/rustc-std-workspace-core" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ pub(crate) fn build_sysroot(
let wrapper_name = wrapper_base_name.replace("____", wrapper);

let mut build_cargo_wrapper_cmd = Command::new(&bootstrap_host_compiler.rustc);
let wrapper_path = DIST_DIR.to_path(dirs).join(&wrapper_name);
build_cargo_wrapper_cmd
.env("TOOLCHAIN_NAME", toolchain_name.clone())
.arg(RelPath::SCRIPTS.to_path(dirs).join(&format!("{wrapper}.rs")))
.arg("-o")
.arg(DIST_DIR.to_path(dirs).join(wrapper_name))
.arg(&wrapper_path)
.arg("-Cstrip=debuginfo");
spawn_and_wait(build_cargo_wrapper_cmd);
try_hard_link(wrapper_path, BIN_DIR.to_path(dirs).join(wrapper_name));
}

let host = build_sysroot_for_triple(
Expand Down Expand Up @@ -247,6 +249,7 @@ fn build_clif_sysroot_for_triple(
if channel == "release" {
build_cmd.arg("--release");
}
build_cmd.arg("--locked");
build_cmd.env("__CARGO_DEFAULT_LIB_METADATA", "cg_clif");
if compiler.triple.contains("apple") {
build_cmd.env("CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO", "packed");
Expand Down
Loading