Skip to content

Commit 3ea9313

Browse files
committed
Merge commit '69b3f5a426a5c1c05236a45b36f6679d95fbe01b' into sync_cg_clif-2024-08-09
1 parent e96ece7 commit 3ea9313

29 files changed

+398
-850
lines changed

.github/workflows/abi-cafe.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ name: Abi-cafe
22

33
on:
44
- push
5+
- pull_request
56

67
permissions: {}
78

89
jobs:
910
abi_cafe:
1011
runs-on: ${{ matrix.os }}
11-
timeout-minutes: 60
12+
timeout-minutes: 30
1213
concurrency:
1314
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.env.TARGET_TRIPLE }}
1415
cancel-in-progress: true
@@ -27,12 +28,16 @@ jobs:
2728
- os: macos-latest
2829
env:
2930
TARGET_TRIPLE: x86_64-apple-darwin
30-
- os: windows-latest
31+
- os: macos-latest
3132
env:
32-
TARGET_TRIPLE: x86_64-pc-windows-msvc
33+
TARGET_TRIPLE: aarch64-apple-darwin
3334
- os: windows-latest
3435
env:
35-
TARGET_TRIPLE: x86_64-pc-windows-gnu
36+
TARGET_TRIPLE: x86_64-pc-windows-msvc
37+
# FIXME Currently hangs. Re-enable once this is fixed or abi-cafe adds a timeout.
38+
#- os: windows-latest
39+
# env:
40+
# TARGET_TRIPLE: x86_64-pc-windows-gnu
3641

3742
steps:
3843
- uses: actions/checkout@v4

.github/workflows/audit.yml

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- run: |
1515
sed -i 's/components.*/components = []/' rust-toolchain
16-
echo 'profile = "minimal"' >> rust-toolchain
1716
- uses: rustsec/[email protected]
1817
with:
1918
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
- name: Avoid installing rustc-dev
3030
run: |
3131
sed -i 's/components.*/components = ["rustfmt"]/' rust-toolchain
32-
echo 'profile = "minimal"' >> rust-toolchain
3332
rustfmt -v
3433
3534
- name: Rustfmt

.zed/settings.json

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"format_on_save": "on",
3+
"lsp": {
4+
"rust-analyzer": {
5+
"initialization_options": {
6+
"diagnostics": {
7+
// in case rustc.source is disabled for performance reasons; disable the errors about this
8+
"disabled": ["unresolved-extern-crate", "unresolved-macro-call"]
9+
},
10+
"rustc": {
11+
"source": "discover"
12+
},
13+
"imports": {
14+
"granularity": {
15+
"enforce": true,
16+
"group": "module"
17+
},
18+
"prefix": "crate"
19+
},
20+
"cargo": {
21+
"features": ["unstable-features"]
22+
},
23+
"linkedProjects": [
24+
"./Cargo.toml",
25+
"./build_system/Cargo.toml",
26+
{
27+
"crates": [
28+
{
29+
"root_module": "./example/mini_core.rs",
30+
"edition": "2018",
31+
"deps": [],
32+
"cfg": []
33+
},
34+
{
35+
"root_module": "./example/mini_core_hello_world.rs",
36+
"edition": "2018",
37+
"deps": [
38+
{
39+
"crate": 0,
40+
"name": "mini_core"
41+
}
42+
],
43+
"cfg": []
44+
},
45+
{
46+
"root_module": "./example/mod_bench.rs",
47+
"edition": "2018",
48+
"deps": [],
49+
"cfg": []
50+
}
51+
]
52+
},
53+
{
54+
"sysroot_src": "./build/stdlib/library",
55+
"crates": [
56+
{
57+
"root_module": "./example/std_example.rs",
58+
"edition": "2015",
59+
"deps": [],
60+
"cfg": []
61+
}
62+
]
63+
}
64+
]
65+
}
66+
}
67+
}
68+
}

Cargo.lock

+48-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ crate-type = ["dylib"]
88

99
[dependencies]
1010
# These have to be in sync with each other
11-
cranelift-codegen = { version = "0.109.0", default-features = false, features = ["std", "unwind", "all-arch"] }
12-
cranelift-frontend = { version = "0.109.0" }
13-
cranelift-module = { version = "0.109.0" }
14-
cranelift-native = { version = "0.109.0" }
15-
cranelift-jit = { version = "0.109.0", optional = true }
16-
cranelift-object = { version = "0.109.0" }
11+
cranelift-codegen = { version = "0.110.1", default-features = false, features = ["std", "unwind", "all-arch"] }
12+
cranelift-frontend = { version = "0.110.1" }
13+
cranelift-module = { version = "0.110.1" }
14+
cranelift-native = { version = "0.110.1" }
15+
cranelift-jit = { version = "0.110.1", optional = true }
16+
cranelift-object = { version = "0.110.1" }
1717
target-lexicon = "0.12.0"
1818
gimli = { version = "0.28", default-features = false, features = ["write"]}
1919
object = { version = "0.36", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
20+
ar_archive_writer = "0.3"
2021

2122
indexmap = "2.0.0"
2223
libloading = { version = "0.8.0", optional = true }

Readme.md

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ $ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
1616

1717
Once it is installed, you can enable it with one of the following approaches:
1818
- `CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo +nightly build -Zcodegen-backend`
19-
- `RUSTFLAGS="-Zcodegen-backend=cranelift" cargo +nightly build`
2019
- Add the following to `.cargo/config.toml`:
2120
```toml
2221
[unstable]

0 commit comments

Comments
 (0)