Skip to content

Commit c2a9839

Browse files
committed
Disable jit and inline-asm when building as part of rustc
Both features are not yet ready. Inline-asm is only supported on Linux and requires explicitly specifying registers instead of register classes. The jit has usability issues and may require the cg_clif executable in the future.
1 parent 80b9e36 commit c2a9839

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ smallvec = "1.6.1"
3737
#gimli = { path = "../" }
3838

3939
[features]
40-
default = ["jit", "inline_asm"]
40+
# Enable features not ready to be enabled when compiling as part of rustc
41+
unstable-features = ["jit", "inline_asm"]
4142
jit = ["cranelift-jit", "libloading"]
4243
inline_asm = []
4344

build_system/build_backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::process::Command;
44

55
pub(crate) fn build_backend(channel: &str, host_triple: &str) -> PathBuf {
66
let mut cmd = Command::new("cargo");
7-
cmd.arg("build").arg("--target").arg(host_triple);
7+
cmd.arg("build").arg("--target").arg(host_triple).arg("--features").arg("unstable-features");
88

99
match channel {
1010
"debug" => {}

0 commit comments

Comments
 (0)