mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
cleanup
This commit is contained in:
parent
71ce267f59
commit
dbee9dd0ce
1 changed files with 0 additions and 41 deletions
|
@ -366,29 +366,6 @@ pub fn helper_wasm<'a>(
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
// Command::new("/opt/wasi-sdk/bin/clang")
|
|
||||||
|
|
||||||
/*
|
|
||||||
Command::new("zig")
|
|
||||||
.current_dir(dir_path)
|
|
||||||
.args(&[
|
|
||||||
"cc",
|
|
||||||
"/home/folkertdev/roc/wasm/libmain.a",
|
|
||||||
test_a_path.to_str().unwrap(),
|
|
||||||
"-target",
|
|
||||||
"wasm32-wasi",
|
|
||||||
"-o",
|
|
||||||
test_wasm_path.to_str().unwrap(),
|
|
||||||
"--sysroot=/opt/wasi-sdk/share/wasi-sysroot/",
|
|
||||||
"-Xlinker", "--export-dynamic",
|
|
||||||
// "-Xlinker", "--allow-undefined"
|
|
||||||
// "--global-cache-dir",
|
|
||||||
// zig_global_cache_path.to_str().unwrap(),
|
|
||||||
])
|
|
||||||
.status()
|
|
||||||
.unwrap();
|
|
||||||
*/
|
|
||||||
|
|
||||||
Command::new("/home/folkertdev/Downloads/zig-linux-x86_64-0.9.0-dev.848+d5ef5da59/zig")
|
Command::new("/home/folkertdev/Downloads/zig-linux-x86_64-0.9.0-dev.848+d5ef5da59/zig")
|
||||||
.current_dir(dir_path)
|
.current_dir(dir_path)
|
||||||
.args(&[
|
.args(&[
|
||||||
|
@ -405,24 +382,6 @@ pub fn helper_wasm<'a>(
|
||||||
.status()
|
.status()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
/*
|
|
||||||
Command::new("/home/folkertdev/Downloads/zig-linux-x86_64-0.9.0-dev.848+d5ef5da59/zig")
|
|
||||||
.current_dir(dir_path)
|
|
||||||
.args(&[
|
|
||||||
"build-lib",
|
|
||||||
"/home/folkertdev/roc/wasm/libmain.a",
|
|
||||||
test_a_path.to_str().unwrap(),
|
|
||||||
"-target",
|
|
||||||
"wasm32-wasi",
|
|
||||||
"-dynamic",
|
|
||||||
"-lc",
|
|
||||||
// "--global-cache-dir",
|
|
||||||
// zig_global_cache_path.to_str().unwrap(),
|
|
||||||
])
|
|
||||||
.status()
|
|
||||||
.unwrap();
|
|
||||||
*/
|
|
||||||
|
|
||||||
// now, do wasmer stuff
|
// now, do wasmer stuff
|
||||||
|
|
||||||
use wasmer::{Function, Instance, Module, Store};
|
use wasmer::{Function, Instance, Module, Store};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue