mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +00:00
Add -lunwind on non-windows targets
This commit is contained in:
@@ -1156,6 +1156,10 @@ fn link_exe_from_dir(
|
||||
cmd.arg("-I");
|
||||
cmd.arg(normalize_path(&format!("{}", include_path.display())));
|
||||
|
||||
if !zig_triple.contains("windows") {
|
||||
cmd.arg("-lunwind");
|
||||
}
|
||||
|
||||
cmd.arg("-OReleaseFast");
|
||||
cmd.arg("-fno-compiler-rt");
|
||||
cmd.arg("-fno-lto");
|
||||
|
||||
Reference in New Issue
Block a user