[ParseableInterface] mkdir -p the module cache before using it

Clang does the same thing for its module cache.
This commit is contained in:
Jordan Rose
2018-11-28 13:49:40 -08:00
parent 1e465f5fc0
commit 0ccfe34513
2 changed files with 1 additions and 1 deletions

View File

@@ -279,6 +279,7 @@ static bool buildSwiftModuleFromSwiftInterface(
StringRef ModuleCachePath, DependencyTracker *OuterTracker) {
bool SubError = false;
bool RunSuccess = llvm::CrashRecoveryContext().RunSafelyOnThread([&] {
(void)llvm::sys::fs::create_directory(ModuleCachePath);
llvm::BumpPtrAllocator SubArgsAlloc;
llvm::StringSaver SubArgSaver(SubArgsAlloc);