revert to old style

This commit is contained in:
Folkert 2022-11-12 00:44:35 +01:00
parent c556d96772
commit d3d9320eb9
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -1208,12 +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()),
&format!("-femit-bin={}", output_path.to_str().unwrap()),
"-target",
"wasm32-wasi-musl",
"--pkg-begin",
"str",
&zig_str_path.display().to_string(),
zig_str_path.to_str().unwrap(),
"--pkg-end",
"--strip",
"-O",