mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Front-end: pass down main executable path to the sub-ASTContext for building module interfaces. NFC
This commit is contained in:
@@ -52,6 +52,7 @@ void CompilerInvocation::computeRuntimeResourcePathFromExecutablePath(
|
||||
}
|
||||
|
||||
void CompilerInvocation::setMainExecutablePath(StringRef Path) {
|
||||
FrontendOpts.MainExecutablePath = Path.str();
|
||||
llvm::SmallString<128> LibPath;
|
||||
computeRuntimeResourcePathFromExecutablePath(Path, LibPath);
|
||||
setRuntimeResourcePath(LibPath.str());
|
||||
|
||||
Reference in New Issue
Block a user