diff --git a/cli/tests/cli_run.rs b/cli/tests/cli_run.rs index 2b075bb660..a5d491d912 100644 --- a/cli/tests/cli_run.rs +++ b/cli/tests/cli_run.rs @@ -327,7 +327,7 @@ mod cli_run { // TODO fix QuicksortApp and then remove this! match benchmark.filename { - "QuicksortApp.roc" | "TestBase64.roc" => { + "QuicksortApp.roc" => { eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename); return; } @@ -608,6 +608,14 @@ fn run_with_wasmer(wasm_path: &std::path::Path, stdin: &[&str]) -> String { use std::io::Write; use wasmer::{Instance, Module, Store}; + // std::process::Command::new("cp") + // .args(&[ + // wasm_path.to_str().unwrap(), + // "/home/folkertdev/roc/wasm/nqueens.wasm", + // ]) + // .output() + // .unwrap(); + let store = Store::default(); let module = Module::from_file(&store, &wasm_path).unwrap(); diff --git a/compiler/build/src/link.rs b/compiler/build/src/link.rs index a2c1fc40de..86a5d5df4d 100644 --- a/compiler/build/src/link.rs +++ b/compiler/build/src/link.rs @@ -617,11 +617,13 @@ fn link_wasm32( // include libc "-lc", "-target", - "wasm32-wasi", + "wasm32-wasi-musl", "--pkg-begin", "str", zig_str_path.to_str().unwrap(), "--pkg-end", + "--strip", + // "-O", "ReleaseSmall", // useful for debugging // "-femit-llvm-ir=/home/folkertdev/roc/roc/examples/benchmarks/platform/host.ll", ])