This applies to mingw as clang-cl already has its own logic for the filename.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225134
91177308-0d34-0410-b5e6-
96231b3b80d8
std::string DefaultTargetTriple;
/// Default name for linked images (e.g., "a.out").
- std::string DefaultImageName;
+ mutable std::string DefaultImageName;
/// Driver title to use with help.
std::string DriverTitle;
StringRef DarwinArchName) const {
llvm::Triple Target = computeTargetTriple(DefaultTargetTriple, Args,
DarwinArchName);
+ if (Target.isOSWindows())
+ DefaultImageName = "a.exe";
ToolChain *&TC = ToolChains[Target.str()];
if (!TC) {
// RUN: grep '"-o" ".*lto\.i" "-x" "c" ".*lto\.c"' %t.log
// RUN: grep '"-o" ".*lto\.bc" .*".*lto\.i"' %t.log
// RUN: grep '"-o" ".*lto\.o" .*".*lto\.bc"' %t.log
-// RUN: grep '".*a.out" .*".*lto\.o"' %t.log
+// RUN: grep '".*a\.\(out\|exe\)" .*".*lto\.o"' %t.log
// RUN: %clang %s -flto -S -### 2> %t.log
// RUN: grep '"-o" ".*lto\.s" "-x" "c" ".*lto\.c"' %t.log