Skip to content

Commit b26b85c

Browse files
committed
Merge main into fix-cast-abi-padding
2 parents 7eac587 + 1ca1217 commit b26b85c

40 files changed

Lines changed: 1663 additions & 1584 deletions

.github/workflows/cranelift-release-branch.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
3939
- name: Patch Cargo.toml to use release branch Cranelift
4040
run: |
41+
sed -i -E '/cranelift-/s/"0\.[0-9]+\.0"/"*"/g' Cargo.toml
42+
4143
cat >>Cargo.toml <<EOF
4244
[patch.crates-io]
4345
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
@@ -47,7 +49,8 @@ jobs:
4749
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
4850
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
4951
EOF
50-
cargo check -p rustc-hash # update lockfile
52+
53+
cargo update
5154
env:
5255
WASMTIME_RELEASE_BRANCH: ${{ steps.wasmtime_release_branch.outputs.branch }}
5356

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ jobs:
257257
- uses: actions/checkout@v6
258258

259259
- name: Download all built artifacts
260-
uses: actions/download-artifact@v4
260+
uses: actions/download-artifact@v8
261261
with:
262262
path: artifacts/
263263

Cargo.lock

Lines changed: 37 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ crate-type = ["dylib"]
88

99
[dependencies]
1010
# These have to be in sync with each other
11-
cranelift-codegen = { version = "0.132.0", default-features = false, features = ["std", "timing", "unwind", "all-native-arch"] }
12-
cranelift-frontend = { version = "0.132.0" }
13-
cranelift-module = { version = "0.132.0" }
14-
cranelift-native = { version = "0.132.0" }
15-
cranelift-jit = { version = "0.132.0", optional = true }
16-
cranelift-object = { version = "0.132.0" }
11+
cranelift-codegen = { version = "0.133.0", default-features = false, features = ["std", "timing", "unwind", "all-native-arch"] }
12+
cranelift-frontend = { version = "0.133.0" }
13+
cranelift-module = { version = "0.133.0" }
14+
cranelift-native = { version = "0.133.0" }
15+
cranelift-jit = { version = "0.133.0", optional = true }
16+
cranelift-object = { version = "0.133.0", default-features = false }
1717
target-lexicon = "0.13"
1818
gimli = { version = "0.33", default-features = false, features = ["write"] }
1919
object = { version = "0.39.1", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
@@ -24,12 +24,12 @@ smallvec = "1.8.1"
2424

2525
# Uncomment to use an unreleased version of cranelift
2626
#[patch.crates-io]
27-
#cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
28-
#cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
29-
#cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
30-
#cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
31-
#cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
32-
#cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
27+
#cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-46.0.0" }
28+
#cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-46.0.0" }
29+
#cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-46.0.0" }
30+
#cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-46.0.0" }
31+
#cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-46.0.0" }
32+
#cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-46.0.0" }
3333

3434
# Uncomment to use local checkout of cranelift
3535
#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }

build_system/abi_cafe.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
use crate::build_sysroot::SysrootConfig;
12
use crate::path::Dirs;
23
use crate::prepare::GitRepo;
34
use crate::utils::{CargoProject, Compiler, spawn_and_wait};
4-
use crate::{CodegenBackend, SysrootKind, build_sysroot};
5+
use crate::{CodegenBackend, build_sysroot};
56

67
static ABI_CAFE_REPO: GitRepo = GitRepo::github(
78
"Gankra",
@@ -15,12 +16,11 @@ static ABI_CAFE_REPO: GitRepo = GitRepo::github(
1516
static ABI_CAFE: CargoProject = CargoProject::new(ABI_CAFE_REPO.source_dir(), "abi_cafe_target");
1617

1718
pub(crate) fn run(
18-
sysroot_kind: SysrootKind,
19+
sysroot_config: &SysrootConfig,
1920
dirs: &Dirs,
2021
cg_clif_dylib: &CodegenBackend,
2122
rustup_toolchain_name: Option<&str>,
2223
bootstrap_host_compiler: &Compiler,
23-
panic_unwind_support: bool,
2424
) {
2525
std::fs::create_dir_all(&dirs.download_dir).unwrap();
2626
ABI_CAFE_REPO.fetch(dirs);
@@ -29,12 +29,11 @@ pub(crate) fn run(
2929
eprintln!("Building sysroot for abi-cafe");
3030
build_sysroot::build_sysroot(
3131
dirs,
32-
sysroot_kind,
32+
sysroot_config,
3333
cg_clif_dylib,
3434
bootstrap_host_compiler,
3535
rustup_toolchain_name,
3636
bootstrap_host_compiler.triple.clone(),
37-
panic_unwind_support,
3837
);
3938

4039
eprintln!("Running abi-cafe");

0 commit comments

Comments
 (0)