Add -lunwind on non-windows targets

This commit is contained in:
Felix Schütt
2023-01-02 20:50:30 +01:00
parent 4f2e14f983
commit 2c1eee48ad

View File

@@ -1156,6 +1156,10 @@ fn link_exe_from_dir(
cmd.arg("-I"); cmd.arg("-I");
cmd.arg(normalize_path(&format!("{}", include_path.display()))); cmd.arg(normalize_path(&format!("{}", include_path.display())));
if !zig_triple.contains("windows") {
cmd.arg("-lunwind");
}
cmd.arg("-OReleaseFast"); cmd.arg("-OReleaseFast");
cmd.arg("-fno-compiler-rt"); cmd.arg("-fno-compiler-rt");
cmd.arg("-fno-lto"); cmd.arg("-fno-lto");