mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
try to strip prefix via string
This commit is contained in:
parent
e74ff3f50a
commit
c556d96772
2 changed files with 5 additions and 8 deletions
|
@ -1208,18 +1208,12 @@ 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.display().to_string().trim_start_matches(r"\\?")
|
||||
),
|
||||
&format!("-femit-bin={}", output_path.display()),
|
||||
"-target",
|
||||
"wasm32-wasi-musl",
|
||||
"--pkg-begin",
|
||||
"str",
|
||||
zig_str_path
|
||||
.display()
|
||||
.to_string()
|
||||
.trim_start_matches(r"\\?"),
|
||||
&zig_str_path.display().to_string(),
|
||||
"--pkg-end",
|
||||
"--strip",
|
||||
"-O",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue