diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index 1dc38a058..7cc25409d 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -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");