[clif-util] Use a simple cfg guard instead of cfg_if for the wasm module;

This commit is contained in:
Benjamin Bouvier
2019-08-23 12:39:33 +02:00
parent 9edbfed65f
commit 67a995f107
2 changed files with 32 additions and 18 deletions

View File

@@ -13,14 +13,6 @@
)
)]
use cfg_if::cfg_if;
cfg_if! {
if #[cfg(feature = "wasm")] {
mod wasm;
}
}
use clap::{App, Arg, SubCommand};
use cranelift_codegen::dbg::LOG_FILENAME_PREFIX;
use cranelift_codegen::VERSION;
@@ -36,6 +28,9 @@ mod print_cfg;
mod run;
mod utils;
#[cfg(feature = "wasm")]
mod wasm;
/// A command either succeeds or fails with an error message.
pub type CommandResult = Result<(), String>;