Skip to content

Commit 8513a68

Browse files
committed
[clang-cl] Allow a colon after the /Fe option (PR46720)
1 parent 7ca9b58 commit 8513a68

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4669,6 +4669,7 @@ def _SLASH_FI : CLJoinedOrSeparate<"FI">,
46694669
def _SLASH_Fe : CLJoined<"Fe">,
46704670
HelpText<"Set output executable file name">,
46714671
MetaVarName<"<file or dir/>">;
4672+
def _SLASH_Fe_COLON : CLJoined<"Fe:">, Alias<_SLASH_Fe>;
46724673
def _SLASH_Fi : CLCompileJoined<"Fi">,
46734674
HelpText<"Set preprocess output file name (with /P)">,
46744675
MetaVarName<"<file>">;

clang/test/Driver/cl-outputs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
// DEFAULTDLL: "-implib:cl-outputs.lib"
100100

101101
// RUN: %clang_cl /Fefoo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s
102+
// RUN: %clang_cl /Fe:foo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s
102103
// FeNOEXT: "-out:foo.exe"
103104

104105
// RUN: %clang_cl /Fe -### -- %s 2>&1 | FileCheck -check-prefix=FeEMPTY %s
@@ -111,6 +112,7 @@
111112
// FeNOEXTDLL: "-implib:foo.lib"
112113

113114
// RUN: %clang_cl /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s
115+
// RUN: %clang_cl /Fe:foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s
114116
// FeEXT: "-out:foo.ext"
115117

116118
// RUN: %clang_cl /LD /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s

0 commit comments

Comments
 (0)