mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Make wasmer optional for cli
This commit is contained in:
parent
69f6ffadab
commit
0b3c95ca97
2 changed files with 10 additions and 3 deletions
|
@ -411,6 +411,7 @@ fn roc_run(cmd: &mut Command) -> io::Result<i32> {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "run-wasm32")]
|
||||
fn run_with_wasmer(wasm_path: &std::path::Path, args: &[String]) {
|
||||
use wasmer::{Instance, Module, Store};
|
||||
|
||||
|
@ -441,6 +442,11 @@ fn run_with_wasmer(wasm_path: &std::path::Path, args: &[String]) {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "run-wasm32"))]
|
||||
fn run_with_wasmer(_wasm_path: &std::path::Path, _args: &[String]) {
|
||||
println!("Running wasm files not support");
|
||||
}
|
||||
|
||||
enum Backend {
|
||||
Host,
|
||||
X86_32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue