Skip to content

Commit c09dbce

Browse files
authored
Merge pull request swiftlang#74297 from compnerd/cache-path
Frontend: share the module cache path with clang
2 parents 5dbf31a + dc131ee commit c09dbce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Frontend/ArgsToFrontendOptionsConverter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include "ArgsToFrontendInputsConverter.h"
1616
#include "ArgsToFrontendOutputsConverter.h"
17+
#include "clang/Driver/Driver.h"
1718
#include "swift/AST/DiagnosticsFrontend.h"
1819
#include "swift/Basic/Platform.h"
1920
#include "swift/Frontend/Frontend.h"
@@ -68,7 +69,7 @@ bool ArgsToFrontendOptionsConverter::convert(
6869
Opts.ExplicitModulesOutputPath = A->getValue();
6970
} else {
7071
SmallString<128> defaultPath;
71-
llvm::sys::path::cache_directory(defaultPath);
72+
clang::driver::Driver::getDefaultModuleCachePath(defaultPath);
7273
Opts.ExplicitModulesOutputPath = defaultPath.str().str();
7374
}
7475
if (const Arg *A = Args.getLastArg(OPT_backup_module_interface_path)) {

0 commit comments

Comments
 (0)