cranelift-codegen: Remove all default architecture support

This commit is contained in:
Mark Bestavros
2019-07-16 11:32:00 -04:00
committed by Benjamin Bouvier
parent 13f83d8291
commit d93673508c
2 changed files with 11 additions and 2 deletions

View File

@@ -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"]

View File

@@ -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"]