Skip to content

Commit

Permalink
MSVC: Add exe path when creating flag_check.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Feb 24, 2025
1 parent 181c03d commit 9c14ff3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/command_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,15 @@ pub(crate) fn command_add_output_file(cmd: &mut Command, dst: &Path, args: CmdAd
if args.is_assembler_msvc
|| !(!args.msvc || args.clang || args.gnu || args.cuda || (args.is_asm && args.is_arm))
{
// Set the object file output
let mut s = OsString::from("-Fo");
s.push(dst);
cmd.arg(s);

// Set the exe file output
let mut s = OsString::from("-Fe");
s.push(dst);
cmd.arg(s);
} else {
cmd.arg("-o").arg(dst);
}
Expand Down

0 comments on commit 9c14ff3

Please sign in to comment.