mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
attempt to get windows to format a path correctly
This commit is contained in:
parent
ce61a40f5b
commit
e74ff3f50a
1 changed files with 8 additions and 2 deletions
|
@ -1208,12 +1208,18 @@ fn link_wasm32(
|
|||
// include wasi libc
|
||||
// using `-lc` is broken in zig 8 (and early 9) in combination with ReleaseSmall
|
||||
wasi_libc_path.to_str().unwrap(),
|
||||
&format!("-femit-bin={}", output_path.to_str().unwrap()),
|
||||
&format!(
|
||||
"-femit-bin={}",
|
||||
output_path.display().to_string().trim_start_matches(r"\\?")
|
||||
),
|
||||
"-target",
|
||||
"wasm32-wasi-musl",
|
||||
"--pkg-begin",
|
||||
"str",
|
||||
zig_str_path.to_str().unwrap(),
|
||||
zig_str_path
|
||||
.display()
|
||||
.to_string()
|
||||
.trim_start_matches(r"\\?"),
|
||||
"--pkg-end",
|
||||
"--strip",
|
||||
"-O",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue