Skip to content

Commit fb23dd3

Browse files
committed
Auto merge of #148691 - bjorn3:sync_cg_clif-2025-11-08, r=bjorn3
Subtree sync for rustc_codegen_cranelift The highlights this time are 4 Cranelift updates, some refactorings and a couple of bugfixes.
2 parents 87f9dcd + 61c3458 commit fb23dd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1673
-838
lines changed
Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
# FIXME re-enable once https://github.com/rust-lang/rust/issues/134863 is fixed.
2-
# task:
3-
# name: freebsd
4-
# freebsd_instance:
5-
# image: freebsd-13-2-release-amd64
6-
# setup_rust_script:
7-
# - pkg install -y git-tiny binutils
8-
# - curl https://sh.rustup.rs -sSf --output rustup.sh
9-
# - sh rustup.sh --default-toolchain none -y --profile=minimal
10-
# target_cache:
11-
# folder: build/cg_clif
12-
# prepare_script:
13-
# - . $HOME/.cargo/env
14-
# - ./y.sh prepare
15-
# test_script:
16-
# - . $HOME/.cargo/env
17-
# # Disabling incr comp reduces cache size and incr comp doesn't save as much
18-
# # on CI anyway.
19-
# - export CARGO_BUILD_INCREMENTAL=false
20-
# # Skip rand as it fails on FreeBSD due to rust-random/rand#1355
21-
# - ./y.sh test --skip-test test.rust-random/rand
1+
task:
2+
name: freebsd
3+
freebsd_instance:
4+
image_family: freebsd-14-2
5+
setup_rust_script:
6+
- pkg install -y git-tiny binutils
7+
- curl https://sh.rustup.rs -sSf --output rustup.sh
8+
- sh rustup.sh --default-toolchain none -y --profile=minimal
9+
target_cache:
10+
folder: build/cg_clif
11+
prepare_script:
12+
- . $HOME/.cargo/env
13+
- ./y.sh prepare
14+
test_script:
15+
- . $HOME/.cargo/env
16+
# Disabling incr comp reduces cache size and incr comp doesn't save as much
17+
# on CI anyway.
18+
- export CARGO_BUILD_INCREMENTAL=false
19+
# FIXME(rust-lang/rust#134863) necessary to avoid error when dlopening proc
20+
# macros during compilation of cg_clif.
21+
- export LD_STATIC_TLS_EXTRA=4096
22+
# Skip rand as it fails on FreeBSD due to rust-random/rand#1355
23+
- ./y.sh test --skip-test test.rust-random/rand

compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- os: ubuntu-24.04-arm
2929
env:
3030
TARGET_TRIPLE: aarch64-unknown-linux-gnu
31-
- os: macos-13
31+
- os: macos-15-intel
3232
env:
3333
TARGET_TRIPLE: x86_64-apple-darwin
3434
- os: macos-latest

compiler/rustc_codegen_cranelift/.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- os: ubuntu-24.04-arm
5757
env:
5858
TARGET_TRIPLE: aarch64-unknown-linux-gnu
59-
- os: macos-13
59+
- os: macos-15-intel
6060
env:
6161
TARGET_TRIPLE: x86_64-apple-darwin
6262
- os: macos-latest
@@ -187,7 +187,7 @@ jobs:
187187
- os: ubuntu-24.04-arm
188188
env:
189189
TARGET_TRIPLE: aarch64-unknown-linux-gnu
190-
- os: macos-13
190+
- os: macos-15-intel
191191
env:
192192
TARGET_TRIPLE: x86_64-apple-darwin
193193
- os: macos-latest
@@ -231,7 +231,7 @@ jobs:
231231
release:
232232
runs-on: ubuntu-latest
233233
timeout-minutes: 10
234-
if: ${{ github.ref == 'refs/heads/master' }}
234+
if: ${{ github.ref == 'refs/heads/main' }}
235235
needs: [rustfmt, test, bench, dist]
236236

237237
permissions:

compiler/rustc_codegen_cranelift/.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"crates": [
2121
{
2222
"root_module": "./example/mini_core.rs",
23-
"edition": "2015",
23+
"edition": "2024",
2424
"deps": [],
2525
"cfg": [],
2626
},
2727
{
2828
"root_module": "./example/mini_core_hello_world.rs",
29-
"edition": "2015",
29+
"edition": "2024",
3030
"deps": [
3131
{
3232
"crate": 0,
@@ -37,7 +37,7 @@
3737
},
3838
{
3939
"root_module": "./example/std_example.rs",
40-
"edition": "2015",
40+
"edition": "2024",
4141
"deps": [],
4242
"cfg": [],
4343
},

0 commit comments

Comments
 (0)