Skip to content

Commit 2c2d2a7

Browse files
committed
Merge commit 'e39eacd2d415803ef82de3b6a314e4f2d0fbc4dc' into sync_cg_clif-2025-01-10
1 parent 3998964 commit 2c2d2a7

15 files changed

+93
-320
lines changed

Cargo.lock

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

Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ libloading = { version = "0.8.0", optional = true }
2323
smallvec = "1.8.1"
2424

2525
[patch.crates-io]
26+
# Uncomment to use an unreleased version of cranelift
27+
#cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-28.0.0", version = "0.115.0" }
28+
#cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-28.0.0", version = "0.115.0" }
29+
#cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-28.0.0", version = "0.115.0" }
30+
#cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-28.0.0", version = "0.115.0" }
31+
#cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-28.0.0", version = "0.115.0" }
32+
#cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-28.0.0", version = "0.115.0" }
33+
2634
# Uncomment to use local checkout of cranelift
2735
#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
2836
#cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }

build_system/build_sysroot.rs

+9-21
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,7 @@ pub(crate) fn build_sysroot(
3333
let cg_clif_dylib_path = match cg_clif_dylib_src {
3434
CodegenBackend::Local(src_path) => {
3535
// Copy the backend
36-
let cg_clif_dylib_path = if cfg!(windows) {
37-
// Windows doesn't have rpath support, so the cg_clif dylib needs to be next to the
38-
// binaries.
39-
dist_dir.join("bin")
40-
} else {
41-
dist_dir.join("lib")
42-
}
43-
.join(src_path.file_name().unwrap());
36+
let cg_clif_dylib_path = dist_dir.join("lib").join(src_path.file_name().unwrap());
4437
try_hard_link(src_path, &cg_clif_dylib_path);
4538
CodegenBackend::Local(cg_clif_dylib_path)
4639
}
@@ -102,19 +95,14 @@ pub(crate) fn build_sysroot(
10295
.install_into_sysroot(dist_dir);
10396
}
10497

105-
let mut target_compiler = {
106-
let rustc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustc-clif"));
107-
let rustdoc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustdoc-clif"));
108-
109-
Compiler {
110-
cargo: bootstrap_host_compiler.cargo.clone(),
111-
rustc: rustc_clif.clone(),
112-
rustdoc: rustdoc_clif.clone(),
113-
rustflags: vec![],
114-
rustdocflags: vec![],
115-
triple: target_triple,
116-
runner: vec![],
117-
}
98+
let mut target_compiler = Compiler {
99+
cargo: bootstrap_host_compiler.cargo.clone(),
100+
rustc: dist_dir.join(wrapper_base_name.replace("____", "rustc-clif")),
101+
rustdoc: dist_dir.join(wrapper_base_name.replace("____", "rustdoc-clif")),
102+
rustflags: vec![],
103+
rustdocflags: vec![],
104+
triple: target_triple,
105+
runner: vec![],
118106
};
119107
if !is_native {
120108
target_compiler.set_cross_linker_and_runner();

build_system/tests.rs

-3
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
7373
"example/arbitrary_self_types_pointers_and_wrappers.rs",
7474
&[],
7575
),
76-
TestCase::build_lib("build.alloc_system", "example/alloc_system.rs", "lib"),
77-
TestCase::build_bin_and_run("aot.alloc_example", "example/alloc_example.rs", &[]),
7876
TestCase::jit_bin("jit.std_example", "example/std_example.rs", "arg"),
7977
TestCase::build_bin_and_run("aot.std_example", "example/std_example.rs", &["arg"]),
8078
TestCase::build_bin_and_run("aot.dst_field_align", "example/dst-field-align.rs", &[]),
@@ -89,7 +87,6 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
8987
&[],
9088
),
9189
TestCase::build_bin_and_run("aot.float-minmax-pass", "example/float-minmax-pass.rs", &[]),
92-
TestCase::build_bin_and_run("aot.mod_bench", "example/mod_bench.rs", &[]),
9390
TestCase::build_bin_and_run("aot.issue-72793", "example/issue-72793.rs", &[]),
9491
TestCase::build_bin("aot.issue-59326", "example/issue-59326.rs"),
9592
TestCase::build_bin_and_run("aot.neon", "example/neon.rs", &[]),

config.txt

-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ aot.mini_core_hello_world
2121
testsuite.base_sysroot
2222
aot.arbitrary_self_types_pointers_and_wrappers
2323
aot.issue_91827_extern_types
24-
build.alloc_system
25-
aot.alloc_example
2624
jit.std_example
2725
aot.std_example
2826
aot.dst_field_align
2927
aot.subslice-patterns-const-eval
3028
aot.track-caller-attribute
3129
aot.float-minmax-pass
32-
aot.mod_bench
3330
aot.issue-72793
3431
aot.issue-59326
3532
aot.neon

example/alloc_example.rs

-44
This file was deleted.

example/alloc_system.rs

-124
This file was deleted.

0 commit comments

Comments
 (0)