mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
enable wasm TestBase64
This commit is contained in:
parent
93817a38e2
commit
2e6bf95fda
2 changed files with 12 additions and 2 deletions
|
@ -327,7 +327,7 @@ mod cli_run {
|
||||||
|
|
||||||
// TODO fix QuicksortApp and then remove this!
|
// TODO fix QuicksortApp and then remove this!
|
||||||
match benchmark.filename {
|
match benchmark.filename {
|
||||||
"QuicksortApp.roc" | "TestBase64.roc" => {
|
"QuicksortApp.roc" => {
|
||||||
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -608,6 +608,14 @@ fn run_with_wasmer(wasm_path: &std::path::Path, stdin: &[&str]) -> String {
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use wasmer::{Instance, Module, Store};
|
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 store = Store::default();
|
||||||
let module = Module::from_file(&store, &wasm_path).unwrap();
|
let module = Module::from_file(&store, &wasm_path).unwrap();
|
||||||
|
|
||||||
|
|
|
@ -617,11 +617,13 @@ fn link_wasm32(
|
||||||
// include libc
|
// include libc
|
||||||
"-lc",
|
"-lc",
|
||||||
"-target",
|
"-target",
|
||||||
"wasm32-wasi",
|
"wasm32-wasi-musl",
|
||||||
"--pkg-begin",
|
"--pkg-begin",
|
||||||
"str",
|
"str",
|
||||||
zig_str_path.to_str().unwrap(),
|
zig_str_path.to_str().unwrap(),
|
||||||
"--pkg-end",
|
"--pkg-end",
|
||||||
|
"--strip",
|
||||||
|
// "-O", "ReleaseSmall",
|
||||||
// useful for debugging
|
// useful for debugging
|
||||||
// "-femit-llvm-ir=/home/folkertdev/roc/roc/examples/benchmarks/platform/host.ll",
|
// "-femit-llvm-ir=/home/folkertdev/roc/roc/examples/benchmarks/platform/host.ll",
|
||||||
])
|
])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue