Renamed dynasm backend to singlepass

This commit is contained in:
Syrus
2019-04-11 12:44:03 -07:00
parent 1f06e90729
commit d67bfdb2c5
24 changed files with 100 additions and 76 deletions

View File

@ -9,7 +9,7 @@ edition = "2018"
readme = "README.md"
[dependencies]
wasmer-dynasm-backend = { path = "../dynasm-backend", optional = true }
wasmer-singlepass-backend = { path = "../singlepass-backend", optional = true }
lazy_static = "1.2.0"
memmap = "0.7.0"
@ -37,7 +37,7 @@ default-compiler = ["wasmer-clif-backend"]
cache = ["default-compiler"]
debug = ["wasmer-clif-backend/debug", "wasmer-runtime-core/debug"]
llvm = ["wasmer-llvm-backend"]
dynasm = ["wasmer-dynasm-backend"]
singlepass = ["wasmer-singlepass-backend"]
[[bench]]
name = "nginx"

View File

@ -171,10 +171,10 @@ pub fn default_compiler() -> &'static dyn Compiler {
#[cfg(feature = "llvm")]
use wasmer_llvm_backend::LLVMCompiler as DefaultCompiler;
#[cfg(feature = "dynasm")]
use wasmer_dynasm_backend::SinglePassCompiler as DefaultCompiler;
#[cfg(feature = "singlepass")]
use wasmer_singlepass_backend::SinglePassCompiler as DefaultCompiler;
#[cfg(not(any(feature = "llvm", feature = "dynasm")))]
#[cfg(not(any(feature = "llvm", feature = "singlepass")))]
use wasmer_clif_backend::CraneliftCompiler as DefaultCompiler;
lazy_static! {