Skip to content

Commit 97a5690

Browse files
authored
Merge pull request #28902 from davidungar/windows-compatible-dummy-file
[Driver, Incremental] Make dummy make-file dependencies path OK for Windows
2 parents b644980 + 419240f commit 97a5690

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Driver/Compilation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,6 +2049,7 @@ void Compilation::addDependencyPathOrCreateDummy(
20492049
HaveAlreadyAddedDependencyPath = true;
20502050
} else if (!depPath.empty()) {
20512051
// Create dummy empty file
2052-
std::ofstream(depPath.str().c_str());
2052+
std::error_code EC;
2053+
llvm::raw_fd_ostream(depPath, EC, llvm::sys::fs::F_None);
20532054
}
20542055
}

0 commit comments

Comments
 (0)