mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
enable wasm TestBase64
This commit is contained in:
parent
93817a38e2
commit
2e6bf95fda
@ -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();
|
||||
|
||||
|
@ -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",
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user