Skip to content

Commit

Permalink
create-exe: use -lc on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Jan 2, 2023
1 parent f44c6bd commit a859d68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/cli/src/commands/create_exe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1139,11 +1139,7 @@ fn link_exe_from_dir(
cmd.arg("-target");
cmd.arg(&zig_triple);

if zig_triple.contains("windows") {
cmd.arg("-lc++");
} else {
cmd.arg("-lc");
}
cmd.arg("-lc");

let mut include_dirs = include_dirs;
include_dirs.sort();
Expand Down

0 comments on commit a859d68

Please sign in to comment.