Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bad961b

Browse files
committed
Disable host-arch feature of cranelift-codegen
This ensures that cg_clif can be built for targets that aren't natively supported by Cranelift. It will not be possible to compile for the host in this case, but cross-compilation will still be possible. We won't distribute cg_clif as rustup component for any targets that aren't natively supported by Cranelift, but will still build it if codegen-backends lists "cranelift".
1 parent 562e7da commit bad961b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_cranelift/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ crate-type = ["dylib"]
88

99
[dependencies]
1010
# These have to be in sync with each other
11-
cranelift-codegen = { version = "0.101.1", features = ["unwind", "all-arch"] }
11+
cranelift-codegen = { version = "0.101.1", default-features = false, features = ["std", "unwind", "all-arch"] }
1212
cranelift-frontend = { version = "0.101.1" }
1313
cranelift-module = { version = "0.101.1" }
1414
cranelift-native = { version = "0.101.1" }

0 commit comments

Comments
 (0)