Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
d8e5a3d
Implement aarch64 SHA-1/SHA-512 LLVM intrinsics
CathalMullan May 30, 2026
e945563
add `extern "tail"` calling convention
folkertdev May 27, 2026
ce5a62c
Merge commit 'f2ef4150da1c50e5b04607cdab771530cac4ffe4' into sync_cg_…
bjorn3 Jun 6, 2026
997468c
Merge branch 'sync_from_rust'
bjorn3 Jun 6, 2026
b734647
Rollup merge of #157016 - folkertdev:add-tailcc-abi, r=WaffleLapkin
jhpratt Jun 7, 2026
7c540e5
Use WorkProductMap instead of FxIndexMap
bjorn3 Jun 3, 2026
7227b9c
Merge pull request #1661 from CathalMullan/sha1
bjorn3 Jun 7, 2026
2c81a77
Implement remaining aarch64 SHA-3 LLVM intrinsics
CathalMullan Jun 10, 2026
ab13f75
Sync from rust 3daae5e42ec9ba435212987331af1b7b8634fa90
bjorn3 Jun 15, 2026
b2fee30
Rustup to rustc 1.98.0-nightly (3daae5e42 2026-06-14)
bjorn3 Jun 15, 2026
07ed5e9
Fix rustc test suite
bjorn3 Jun 15, 2026
59969ea
remove LLVM `va_end` calls
folkertdev Jun 8, 2026
0f5ef63
Sync from rust 91fe22da8084a1c9e993d78d4a56f22ab8396236
bjorn3 Jun 22, 2026
bcdbc4c
Rustup to rustc 1.98.0-nightly (91fe22da8 2026-06-21)
bjorn3 Jun 22, 2026
84632b1
Fix rustc test suite
bjorn3 Jun 22, 2026
871eb58
Extract all instance shim variants into new `ShimKind` enum
camelid Jun 18, 2026
6adf588
Strip vestigial `Shim` suffix from `ShimKind` variants
camelid Jun 18, 2026
604d40f
Update to Cranelift 0.133
bjorn3 Jun 19, 2026
052d958
ci: monthly Cranelift release branch automation regex (#1665)
0xmuon Jun 23, 2026
a105126
add IsRigid marker to TyKind::Alias and constants
adwinwhite May 22, 2026
316b36f
Bump `graviola` to v0.4.1
CathalMullan Jun 25, 2026
014bb13
Impl MIR lowering side-tables for #[splat]
teor2345 Jun 12, 2026
cd00d47
use `"llvm.prefetch.p0"` instead of `"llvm.prefetch"`
folkertdev Jun 27, 2026
98ff4dc
Rollup merge of #158497 - folkertdev:stdarch-sync-2026-06-27, r=folke…
jhpratt Jun 28, 2026
f079d01
Remove trailing whitespace
bjorn3 Jun 29, 2026
fd13d66
Sync from rust df6ee909ef35c75aa58aa45af6ac071a9b8285c2
bjorn3 Jun 29, 2026
c2f57f2
Rustup to rustc 1.98.0-nightly (df6ee909e 2026-06-28)
bjorn3 Jun 29, 2026
49bde28
Merge pull request #1668 from CathalMullan/graviola-v0.4
bjorn3 Jun 29, 2026
c232e62
Minor formatting change
bjorn3 Jun 29, 2026
b25de25
Rename `align` to `platform_align` on `Scalar` and `Primitive`
scottmcm Jun 29, 2026
63e1a99
Rollup merge of #158542 - scottmcm:scalar-but-packed, r=workingjubilee
jhpratt Jul 1, 2026
cbff888
Better panic messages
bjorn3 Jul 2, 2026
e9ad5d9
Replace keep_sysroot config with --keep-sysroot cli flag
bjorn3 Jul 2, 2026
1629cba
Introduce SysrootConfig struct
bjorn3 Jul 2, 2026
34efabd
Sync from rust 4c9d2bfe4ad7a65669098754964aaebe0ec1ced2
bjorn3 Jul 2, 2026
49795a1
Rustup to rustc 1.98.0-nightly (4c9d2bfe4 2026-07-01)
bjorn3 Jul 2, 2026
6c83401
Update list of ignored rustc tests
bjorn3 Jul 2, 2026
4b57ec9
Fix rustc test suite on arm64
bjorn3 Jul 2, 2026
a6618fe
Merge pull request #1666 from CathalMullan/sha3
bjorn3 Jul 3, 2026
fca1bc4
Distinguish null reference production from null pointer dereference
raushan728 Jul 5, 2026
23c7935
codegen_cranelift: Fix backend limit diagnostics (#1673)
Dnreikronos Jul 6, 2026
44273d6
Carry the `b_offset` inside `BackendRepr::ScalarPair`
scottmcm Jul 1, 2026
28eb697
Revert an error change
bjorn3 Jul 8, 2026
8450a00
Sync from rust f10db292a3733b5c67c8da8c7661195ff4b05774
bjorn3 Jul 8, 2026
5de4124
Rustup to rustc 1.99.0-nightly (f10db292a 2026-07-07)
bjorn3 Jul 8, 2026
5bbb9e4
Support -Zforce-intrinsic-fallback
bjorn3 Jul 8, 2026
952e3ff
place FnDef behind a binder, instantiate w/ Dummy
Jun 17, 2026
2a57476
Sync from rust 375b1431b7d89d1c2e2bc168c011848ae12b7d14
bjorn3 Jul 11, 2026
720e683
Rustup to rustc 1.99.0-nightly (375b1431b 2026-07-10)
bjorn3 Jul 11, 2026
1302a4f
Minor cleanup
bjorn3 Jul 11, 2026
7685cde
Fix f128 ABI on s390x
bjorn3 Jul 11, 2026
e997dc7
remove f16-math patch
folkertdev Jul 11, 2026
1ca1217
Merge pull request #1674 from folkertdev/remove-f16-math-patch
bjorn3 Jul 12, 2026
fe2d52d
Introduce InstanceKind::LlvmIntrinsic
bjorn3 Jan 8, 2026
fa86122
Rollup merge of #159183 - bjorn3:instance_llvm_intrinsic, r=RalfJung,…
JonathanBrouwer Jul 14, 2026
b1cc00e
Update uses of `rustc_codegen_ssa::errors`
GuillaumeGomez Jul 15, 2026
44ad529
Sync from rust 3d50c25bc66853bf0ad205529d0f305a1d841b5e
bjorn3 Jul 17, 2026
3601f44
Rustup to rustc 1.99.0-nightly (3d50c25bc 2026-07-16)
bjorn3 Jul 17, 2026
6c9b08f
Fix rustc test suite
bjorn3 Jul 17, 2026
b5e1509
Treat `-Ctarget-cpu` as a target-modifier when targeting AVR, AMDGCN …
kulst Jan 6, 2026
eb271b6
Remove Android GDB special case
Kobzol Jul 17, 2026
9ca2cb1
Store test revision in a `TestVariant` struct
Kobzol Jul 17, 2026
7c1d9a9
Add debugger field to `TestVariant`
Kobzol Jul 17, 2026
0d0d03a
Stop cloning configs in compiletest
Kobzol Jul 17, 2026
e2596cf
Sync from rust eff8269f797067c30555e77f160ec84c0ed15cd9
bjorn3 Jul 19, 2026
a474ad8
Rustup to rustc 1.99.0-nightly (eff8269f7 2026-07-18)
bjorn3 Jul 19, 2026
0047b65
Fix rustc test suite
bjorn3 Jul 19, 2026
f35ca57
Fix rustc bootstrap testing
bjorn3 Jul 19, 2026
b0e9b44
Rollup merge of #150732 - kulst:cpu_is_target_modifier, r=bjorn3
JonathanBrouwer Jul 19, 2026
17b3642
Remove `ResultsVisitor::visit_block_end`
nnethercote Jul 14, 2026
f2063f9
Avoid some `IS_FORWARD` tests
nnethercote Jul 14, 2026
642e9d2
Simplify `apply_effects_in_range`
nnethercote Jul 14, 2026
61b5db6
Eliminate `ResultsVisitor::visit_block_entry`
nnethercote Jul 20, 2026
e736635
Inline and remove `Direction::apply_effects_in_range`
nnethercote Jul 20, 2026
d28bb79
Update to Cranelift 0.134
bjorn3 Jul 9, 2026
abf20f6
Use JITModule::get_address in relocate_for_jit
bjorn3 Jul 14, 2026
57fca5a
Move limit file
mejrs Jul 21, 2026
ac91844
Fixup Limit imports
mejrs Jul 21, 2026
013c95a
Handle debugger line directives
Kobzol Jul 17, 2026
490b344
increase depth for float fallback hack visitor
adwinwhite Jul 21, 2026
3559c7d
Prefer `cfg!(not(test))` when skipping code paths during unit tests
Zalathar Jul 22, 2026
2f5a71d
LLVM 24 updates (in llvm/llvm-project@bff9c544bd87) the diagnostic st…
durin42 Jul 22, 2026
480c37d
Prefer `cfg!(not(test))` when skipping downloads
Zalathar Jul 22, 2026
e1fa066
Sync from rust 0e29c21d93abc9bdc330182be1fbd33cfd5fee68
bjorn3 Jul 22, 2026
d7ea382
Stabilize `c_variadic`
folkertdev Feb 13, 2026
6da84ff
Rustup to rustc 1.99.0-nightly (0e29c21d9 2026-07-21)
bjorn3 Jul 22, 2026
cb89537
Fix rustc test suite
bjorn3 Jul 22, 2026
39c2db0
Merge commit 'cb89537d435ec9cc9c812cd47c6130bd96aa0050' into sync_cg_…
bjorn3 Jul 22, 2026
8ad0365
Rollup merge of #159712 - bjorn3:sync_cg_clif-2026-07-22, r=bjorn3
JonathanBrouwer Jul 22, 2026
20dbb70
Rollup merge of #155697 - folkertdev:stabilize-c-variadic, r=tgross35…
JonathanBrouwer Jul 22, 2026
cc700c5
Rollup merge of #159285 - nnethercote:simplify-apply_effects_in_range…
JonathanBrouwer Jul 22, 2026
46c14cd
Rollup merge of #159607 - durin42:llvm-23-riscv32e-error-msg, r=nikic
JonathanBrouwer Jul 22, 2026
08dc7d6
Rollup merge of #159659 - mejrs:limit, r=petrochenkov
JonathanBrouwer Jul 22, 2026
095c08f
Rollup merge of #159451 - Kobzol:compiletest-debuginfo, r=Zalathar,ji…
JonathanBrouwer Jul 22, 2026
90f2ed0
Rollup merge of #159646 - adwinwhite:fix-f16-hack, r=lcnr
JonathanBrouwer Jul 22, 2026
4c04221
Rollup merge of #159705 - Zalathar:cfg-test, r=Kobzol
JonathanBrouwer Jul 22, 2026
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
8 changes: 2 additions & 6 deletions compiler/rustc_ast_passes/src/feature_gate.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use rustc_ast::visit::{self, AssocCtxt, FnCtxt, FnKind, Visitor};
use rustc_ast::visit::{self, AssocCtxt, FnKind, Visitor};
use rustc_ast::{self as ast, AttrVec, GenericBound, NodeId, PatKind, attr, token};
use rustc_attr_parsing::AttributeParser;
use rustc_errors::msg;
Expand Down Expand Up @@ -366,7 +366,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
visit::walk_poly_trait_ref(self, t);
}

fn visit_fn(&mut self, fn_kind: FnKind<'a>, _: &AttrVec, span: Span, _: NodeId) {
fn visit_fn(&mut self, fn_kind: FnKind<'a>, _: &AttrVec, _: Span, _: NodeId) {
if let Some(_header) = fn_kind.header() {
// Stability of const fn methods are covered in `visit_assoc_item` below.
}
Expand All @@ -375,10 +375,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
self.check_late_bound_lifetime_defs(generic_params);
}

if fn_kind.ctxt() != Some(FnCtxt::Foreign) && fn_kind.decl().c_variadic() {
gate!(self, c_variadic, span, "C-variadic functions are unstable");
}

visit::walk_fn(self, fn_kind)
}

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_attr_parsing/src/attributes/util.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::num::IntErrorKind;

use rustc_ast::{LitKind, ast};
use rustc_data_structures::Limit;
use rustc_feature::is_builtin_attr_name;
use rustc_hir::RustcVersion;
use rustc_hir::limit::Limit;
use rustc_span::Symbol;

use crate::context::AcceptContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:

- name: Patch Cargo.toml to use release branch Cranelift
run: |
sed -i -E '/cranelift-/s/"0\.[0-9]+\.0"/"*"/g' Cargo.toml

cat >>Cargo.toml <<EOF
[patch.crates-io]
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
Expand All @@ -47,7 +49,8 @@ jobs:
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
EOF
cargo check -p rustc-hash # update lockfile

cargo update
env:
WASMTIME_RELEASE_BRANCH: ${{ steps.wasmtime_release_branch.outputs.branch }}

Expand Down
85 changes: 43 additions & 42 deletions compiler/rustc_codegen_cranelift/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"

[[package]]
name = "anyhow"
version = "1.0.100"
version = "1.0.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"

[[package]]
name = "arbitrary"
Expand Down Expand Up @@ -43,46 +43,46 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"

[[package]]
name = "cranelift-assembler-x64"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c80cf55a351448317210f26c434be761bcb25e7b36116ec92f89540b73e2833"
checksum = "a25c5b1bb1d86ae68dca1826a1b668b9951056c42e0eef89e35942c7001eb481"
dependencies = [
"cranelift-assembler-x64-meta",
]

[[package]]
name = "cranelift-assembler-x64-meta"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07937ca8617b340162fe3a4716be885b5847e9b56d6c7a89abbe4d42340fdc91"
checksum = "c1b052a1fd94b4565697c56f9d358723c7c354feef42a6569081225c1bed6e86"
dependencies = [
"cranelift-srcgen",
]

[[package]]
name = "cranelift-bforest"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88217b08180882436d54c0133274885c590698ae854e352bede1cda041230800"
checksum = "a599e8ffa6a1a118d2dce4809073ad2f2534b1ae1c6d55697b6b8a324446c971"
dependencies = [
"cranelift-entity",
"wasmtime-internal-core",
]

[[package]]
name = "cranelift-bitset"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5c3cf7ba29fa56e56040848e34835d4e45988b2760ef212413409af95ffd8c1"
checksum = "1e1ae13182fadc731b1387287b4c6d257b9191fbb7c980ebb2d74c2db74b743e"
dependencies = [
"wasmtime-internal-core",
]

[[package]]
name = "cranelift-codegen"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebe1aac2efd4cba2047845fce38a68519935a30e20c8a6294ba7e2f448fe722d"
checksum = "dce9c62e5e11d12f4a8f5f939f29899f32002d38193b47491e2539705a1d447e"
dependencies = [
"bumpalo",
"cranelift-assembler-x64",
Expand All @@ -107,9 +107,9 @@ dependencies = [

[[package]]
name = "cranelift-codegen-meta"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0909eaf9d6f18f5bf802d50608cb4368ac340fbd03cc44f2888d1cfcc3faa64e"
checksum = "3c29d6b53cfd758dc1a269310fc92199056db03943b9b774b4911cd615e02ad7"
dependencies = [
"cranelift-assembler-x64-meta",
"cranelift-codegen-shared",
Expand All @@ -119,52 +119,53 @@ dependencies = [

[[package]]
name = "cranelift-codegen-shared"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c95a8da8be283f49cda7d0ef228c94f10d791e517b27b0c7e282dadd2e79ce45"
checksum = "8cd8cfe23f3349bfa62e06a450cd94cf5f84fbe78556f4df3276534c4b93d834"

[[package]]
name = "cranelift-control"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f5b19c81145146da1f7afda2e7f52111842fe6793512e740ad5cf3f5639e6212"
checksum = "f991b4712f21d9502758f7e6cb11746ca2e6186b06c42995eaf31b1e50a9c498"
dependencies = [
"arbitrary",
]

[[package]]
name = "cranelift-entity"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a55309b47e6633ab05821304206cb1e92952e845b1224985562bb7ac1e92323"
checksum = "5e24f9c233a43730e22cf42ab0c03f41265e147eca97b3362be01e0da359d7a5"
dependencies = [
"cranelift-bitset",
"wasmtime-internal-core",
]

[[package]]
name = "cranelift-frontend"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "064d2d3533d9608f1cf44c8899cf2f7f33feb70300b0fb83e687b0d9e7b91147"
checksum = "61325401051d35ddbf8e2b5d5b5dec8dd54688c9054046b62e76146e61c88a99"
dependencies = [
"cranelift-codegen",
"hashbrown 0.17.0",
"log",
"smallvec",
"target-lexicon",
]

[[package]]
name = "cranelift-isle"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ac4e0bc095b2dab2212d1e99d7a74b62afc1485db023f1c0cb34a68758f7bd1"
checksum = "62f71d642812aa70284750719efbd2cc5ad7e7c5e6c43c026b5b0686ce8a6052"

[[package]]
name = "cranelift-jit"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b48c2a0720c7d62aadd508c662b9bf666b614a47a888589e553e0511620635e"
checksum = "92a0f9300c8a5738553a440fe4f25b85f574d5c41b946880dabd47c809f87997"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -183,9 +184,9 @@ dependencies = [

[[package]]
name = "cranelift-module"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28f05d9efce7a4e8c2ceec49c76d26e53f1ee8cb13de822b6ca5118d48f50976"
checksum = "5f723983af35e690c4e2fc160df5d8895bb4a419a54d693367163d781bd830cc"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -194,9 +195,9 @@ dependencies = [

[[package]]
name = "cranelift-native"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09a40053f5cb925451dd1d57393d14ad3145c8e0786701c27b5415ebb9a3ba4f"
checksum = "b5c50cffac70c30cc5d0b1d8d287e7712dc76b1181c43697de63d27f38236ddd"
dependencies = [
"cranelift-codegen",
"libc",
Expand All @@ -205,9 +206,9 @@ dependencies = [

[[package]]
name = "cranelift-object"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f7a263727954f7b310796e1b5543e6dfd6afed7e15c62f2454b51b6f38a39e1"
checksum = "430e18f4886ba98f6a7dbb82c86df19f28f27cac417611e5dcc427a7a8decac9"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -220,9 +221,9 @@ dependencies = [

[[package]]
name = "cranelift-srcgen"
version = "0.132.0"
version = "0.134.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3ceab9a53f7d362c89841fbaa8e63e44d47c40e91dc96ee6f777fca5d6b323b"
checksum = "bc5972dc0a5df7ba6f11e8e1654287c40ea1704ca6ce3b76ef54fa58445ee4ad"

[[package]]
name = "crc32fast"
Expand Down Expand Up @@ -339,9 +340,9 @@ checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"

[[package]]
name = "memmap2"
version = "0.2.3"
version = "0.9.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "723e3ebdcdc5c023db1df315364573789f8857c11b631a2fdfad7c00f5c046b4"
checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"
dependencies = [
"libc",
]
Expand Down Expand Up @@ -480,9 +481,9 @@ dependencies = [

[[package]]
name = "target-lexicon"
version = "0.13.4"
version = "0.13.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"

[[package]]
name = "unicode-ident"
Expand All @@ -492,19 +493,19 @@ checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"

[[package]]
name = "wasmtime-internal-core"
version = "45.0.0"
version = "47.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bdae4b55b15a23d774b15f6e7cd90ae0d0aa17c47c12b4db098b3dd11ba9d58"
checksum = "852f3326264aea590131a422e3ecb33fae3b6695fd67e2e202e2799cd8d27629"
dependencies = [
"hashbrown 0.17.0",
"libm",
]

[[package]]
name = "wasmtime-internal-jit-icache-coherence"
version = "45.0.0"
version = "47.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a312ba8bb77955dcd44294a223e7f124c3071ff966583d385d3f6a4639c62e3"
checksum = "e537f59b5ab127ca2d421ecbd8728d70bd6cdc9891cec193fb1f594c3309836c"
dependencies = [
"cfg-if",
"libc",
Expand Down
24 changes: 12 additions & 12 deletions compiler/rustc_codegen_cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ crate-type = ["dylib"]

[dependencies]
# These have to be in sync with each other
cranelift-codegen = { version = "0.132.0", default-features = false, features = ["std", "timing", "unwind", "all-native-arch"] }
cranelift-frontend = { version = "0.132.0" }
cranelift-module = { version = "0.132.0" }
cranelift-native = { version = "0.132.0" }
cranelift-jit = { version = "0.132.0", optional = true }
cranelift-object = { version = "0.132.0" }
cranelift-codegen = { version = "0.134.0", default-features = false, features = ["std", "timing", "unwind", "all-native-arch"] }
cranelift-frontend = { version = "0.134.0" }
cranelift-module = { version = "0.134.0" }
cranelift-native = { version = "0.134.0" }
cranelift-jit = { version = "0.134.0", optional = true }
cranelift-object = { version = "0.134.0", default-features = false }
target-lexicon = "0.13"
gimli = { version = "0.33", default-features = false, features = ["write"] }
object = { version = "0.39.1", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
Expand All @@ -24,12 +24,12 @@ smallvec = "1.8.1"

# Uncomment to use an unreleased version of cranelift
#[patch.crates-io]
#cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
#cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
#cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
#cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
#cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
#cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-45.0.0" }
#cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-47.0.0" }
#cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-47.0.0" }
#cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-47.0.0" }
#cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-47.0.0" }
#cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-47.0.0" }
#cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-47.0.0" }

# Uncomment to use local checkout of cranelift
#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
Expand Down
9 changes: 4 additions & 5 deletions compiler/rustc_codegen_cranelift/build_system/abi_cafe.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::build_sysroot::SysrootConfig;
use crate::path::Dirs;
use crate::prepare::GitRepo;
use crate::utils::{CargoProject, Compiler, spawn_and_wait};
use crate::{CodegenBackend, SysrootKind, build_sysroot};
use crate::{CodegenBackend, build_sysroot};

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

pub(crate) fn run(
sysroot_kind: SysrootKind,
sysroot_config: &SysrootConfig,
dirs: &Dirs,
cg_clif_dylib: &CodegenBackend,
rustup_toolchain_name: Option<&str>,
bootstrap_host_compiler: &Compiler,
panic_unwind_support: bool,
) {
std::fs::create_dir_all(&dirs.download_dir).unwrap();
ABI_CAFE_REPO.fetch(dirs);
Expand All @@ -29,12 +29,11 @@ pub(crate) fn run(
eprintln!("Building sysroot for abi-cafe");
build_sysroot::build_sysroot(
dirs,
sysroot_kind,
sysroot_config,
cg_clif_dylib,
bootstrap_host_compiler,
rustup_toolchain_name,
bootstrap_host_compiler.triple.clone(),
panic_unwind_support,
);

eprintln!("Running abi-cafe");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub(crate) fn build_backend(

cmd.arg("--release");

cmd.arg("-Zno-embed-metadata");
cmd.arg("-Zembed-metadata=no");

eprintln!("[BUILD] rustc_codegen_cranelift");
crate::utils::spawn_and_wait(cmd);
Expand Down
Loading
Loading