[clif-util] Use a simple cfg guard instead of cfg_if for the wasm module;
This commit is contained in:
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user