mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ParseableInterface] mkdir -p the module cache before using it
Clang does the same thing for its module cache.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user