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);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %empty-directory(%t/modulecache)
|
||||
//
|
||||
// Test will build a module TestModule that depends on OtherModule and LeafModule (built from other.swift and leaf.swift).
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user