Add dynasm feature to emscripten tests

This commit is contained in:
Brandon Fish
2019-03-13 20:16:07 -05:00
parent d4ded2cf07
commit e5d67c9705
4 changed files with 18 additions and 3 deletions

View File

@ -185,7 +185,13 @@ mod tests {
LLVMCompiler::new()
}
#[cfg(not(any(feature = "llvm", feature = "clif")))]
#[cfg(feature = "dynasm")]
fn get_compiler() -> impl Compiler {
use wasmer_dynasm_backend::SinglePassCompiler;
SinglePassCompiler::new()
}
#[cfg(not(any(feature = "llvm", feature = "clif", feature = "dynasm")))]
fn get_compiler() -> impl Compiler {
panic!("compiler not specified, activate a compiler via features");
use wasmer_clif_backend::CraneliftCompiler;