forked from OSchip/llvm-project
[clang-cl] Allow a colon after the /Fe option (PR46720)
This commit is contained in:
parent
7ca9b589c4
commit
8513a681f7
|
@ -4669,6 +4669,7 @@ def _SLASH_FI : CLJoinedOrSeparate<"FI">,
|
|||
def _SLASH_Fe : CLJoined<"Fe">,
|
||||
HelpText<"Set output executable file name">,
|
||||
MetaVarName<"<file or dir/>">;
|
||||
def _SLASH_Fe_COLON : CLJoined<"Fe:">, Alias<_SLASH_Fe>;
|
||||
def _SLASH_Fi : CLCompileJoined<"Fi">,
|
||||
HelpText<"Set preprocess output file name (with /P)">,
|
||||
MetaVarName<"<file>">;
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
// DEFAULTDLL: "-implib:cl-outputs.lib"
|
||||
|
||||
// RUN: %clang_cl /Fefoo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s
|
||||
// RUN: %clang_cl /Fe:foo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s
|
||||
// FeNOEXT: "-out:foo.exe"
|
||||
|
||||
// RUN: %clang_cl /Fe -### -- %s 2>&1 | FileCheck -check-prefix=FeEMPTY %s
|
||||
|
@ -111,6 +112,7 @@
|
|||
// FeNOEXTDLL: "-implib:foo.lib"
|
||||
|
||||
// RUN: %clang_cl /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s
|
||||
// RUN: %clang_cl /Fe:foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s
|
||||
// FeEXT: "-out:foo.ext"
|
||||
|
||||
// RUN: %clang_cl /LD /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s
|
||||
|
|
Loading…
Reference in New Issue