diff --git a/compiler/build/src/link.rs b/compiler/build/src/link.rs index 86a5d5df4d..0be0ac00d6 100644 --- a/compiler/build/src/link.rs +++ b/compiler/build/src/link.rs @@ -606,28 +606,27 @@ fn link_wasm32( ) -> io::Result<(Child, PathBuf)> { let zig_str_path = find_zig_str_path(); - let child = - Command::new("/home/folkertdev/Downloads/zig-linux-x86_64-0.9.0-dev.848+d5ef5da59/zig") - // .env_clear() - // .env("PATH", &env_path) - .args(&["build-exe"]) - .args(input_paths) - .args([ - &format!("-femit-bin={}", output_path.to_str().unwrap()), - // include libc - "-lc", - "-target", - "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", - ]) - .spawn()?; + let child = Command::new("zig9") + // .env_clear() + // .env("PATH", &env_path) + .args(&["build-exe"]) + .args(input_paths) + .args([ + &format!("-femit-bin={}", output_path.to_str().unwrap()), + // include libc + "-lc", + "-target", + "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", + ]) + .spawn()?; Ok((child, output_path)) } diff --git a/compiler/test_gen/src/helpers/eval.rs b/compiler/test_gen/src/helpers/eval.rs index 10c770a3d7..dc4c377c84 100644 --- a/compiler/test_gen/src/helpers/eval.rs +++ b/compiler/test_gen/src/helpers/eval.rs @@ -366,7 +366,7 @@ pub fn helper_wasm<'a>( use std::process::Command; - Command::new("/home/folkertdev/Downloads/zig-linux-x86_64-0.9.0-dev.848+d5ef5da59/zig") + Command::new("zig9") .current_dir(dir_path) .args(&[ "wasm-ld",