Before this patch, running the x64 new backend would require both
compiling with --features experimental_x64 and running with
`use_new_backend`.
This patches changes this behavior so that the runtime flag is not
needed anymore: using the feature flag will enforce usage of the new
backend everywhere, making using and testing it much simpler:
cargo run --features experimental_x64 ;; other CLI options/flags
This also gives a hint at what the meta language generation would look
like after switching to the new backend.
Compiling only with the x64 codegen flag gives a nice compile time speedup.
52 lines
1.9 KiB
TOML
52 lines
1.9 KiB
TOML
[package]
|
|
name = "cranelift-tools"
|
|
authors = ["The Cranelift Project Developers"]
|
|
version = "0.65.0"
|
|
description = "Binaries for testing the Cranelift libraries"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
documentation = "https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/docs/index.md"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
publish = false
|
|
edition = "2018"
|
|
|
|
[[bin]]
|
|
name = "clif-util"
|
|
path = "src/clif-util.rs"
|
|
|
|
[dependencies]
|
|
cfg-if = "0.1"
|
|
cranelift-codegen = { path = "codegen", version = "0.65.0" }
|
|
cranelift-entity = { path = "entity", version = "0.65.0" }
|
|
cranelift-interpreter = { path = "interpreter", version = "0.65.0" }
|
|
cranelift-reader = { path = "reader", version = "0.65.0" }
|
|
cranelift-frontend = { path = "frontend", version = "0.65.0" }
|
|
cranelift-serde = { path = "serde", version = "0.65.0", optional = true }
|
|
cranelift-wasm = { path = "wasm", version = "0.65.0", optional = true }
|
|
cranelift-native = { path = "native", version = "0.65.0" }
|
|
cranelift-filetests = { path = "filetests", version = "0.65.0" }
|
|
cranelift-module = { path = "module", version = "0.65.0" }
|
|
cranelift-faerie = { path = "faerie", version = "0.65.0" }
|
|
cranelift-object = { path = "object", version = "0.65.0" }
|
|
cranelift-simplejit = { path = "simplejit", version = "0.65.0" }
|
|
cranelift-preopt = { path = "preopt", version = "0.65.0" }
|
|
cranelift = { path = "umbrella", version = "0.65.0" }
|
|
filecheck = "0.5.0"
|
|
clap = "2.32.0"
|
|
log = "0.4.8"
|
|
term = "0.6.1"
|
|
capstone = { version = "0.6.0", optional = true }
|
|
wat = { version = "1.0.18", optional = true }
|
|
target-lexicon = "0.10"
|
|
pretty_env_logger = "0.4.0"
|
|
file-per-thread-logger = "0.1.2"
|
|
indicatif = "0.13.0"
|
|
thiserror = "1.0.15"
|
|
walkdir = "2.2"
|
|
|
|
[features]
|
|
default = ["disas", "wasm", "cranelift-codegen/all-arch"]
|
|
disas = ["capstone"]
|
|
enable-peepmatic = ["cranelift-codegen/enable-peepmatic", "cranelift-filetests/enable-peepmatic"]
|
|
wasm = ["wat", "cranelift-wasm"]
|
|
experimental_x64 = ["cranelift-codegen/x64"]
|