diff --git a/cranelift/Cargo.toml b/cranelift/Cargo.toml index a8c2addb05..eb25cb2a65 100644 --- a/cranelift/Cargo.toml +++ b/cranelift/Cargo.toml @@ -44,7 +44,7 @@ file-per-thread-logger = "0.1.2" indicatif = "0.11.0" [features] -default = ["disas", "wasm"] +default = ["disas", "wasm", "cranelift-codegen/all-arch"] disas = ["capstone"] wasm = ["wabt", "cranelift-wasm"] basic-blocks = ["cranelift-codegen/basic-blocks", "cranelift-frontend/basic-blocks", "cranelift-wasm/basic-blocks"] diff --git a/cranelift/codegen/Cargo.toml b/cranelift/codegen/Cargo.toml index d432d5313b..868db6ca3b 100644 --- a/cranelift/codegen/Cargo.toml +++ b/cranelift/codegen/Cargo.toml @@ -30,7 +30,7 @@ serde = { version = "1.0.94", features = ["derive"], optional = true } cranelift-codegen-meta = { path = "meta", version = "0.40.0", default-features = false } [features] -default = ["std", "x86", "arm32", "arm64", "riscv"] +default = ["std"] # The "std" feature enables use of libstd. The "core" feature enables use # of some minimal std-like replacement libraries. At least one of these two @@ -54,11 +54,20 @@ core = [ testing_hooks = [] # ISA targets for which we should build. +# If no ISA targets are explicitly enabled, the ISA target for the host machine is enabled. x86 = [] arm32 = [] arm64 = [] riscv = [] +# Option to enable all architectures. +all-arch = [ + "x86", + "arm32", + "arm64", + "riscv" +] + # For dependent crates that want to serialize some parts of cranelift enable-serde = ["serde"]