Skip to content

Commit 9c14ff3

Browse files
committed
MSVC: Add exe path when creating flag_check.exe
1 parent 181c03d commit 9c14ff3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/command_helpers.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,15 @@ pub(crate) fn command_add_output_file(cmd: &mut Command, dst: &Path, args: CmdAd
417417
if args.is_assembler_msvc
418418
|| !(!args.msvc || args.clang || args.gnu || args.cuda || (args.is_asm && args.is_arm))
419419
{
420+
// Set the object file output
420421
let mut s = OsString::from("-Fo");
421422
s.push(dst);
422423
cmd.arg(s);
424+
425+
// Set the exe file output
426+
let mut s = OsString::from("-Fe");
427+
s.push(dst);
428+
cmd.arg(s);
423429
} else {
424430
cmd.arg("-o").arg(dst);
425431
}

0 commit comments

Comments
 (0)