-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SourceKit] Pass 'swiftc' path to Driver when creating frontend args #65068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SourceKit] Pass 'swiftc' path to Driver when creating frontend args #65068
Conversation
5d8c849
to
84778ee
Compare
@swift-ci Please smoke test |
84778ee
to
7797d96
Compare
@swift-ci Please test |
7797d96
to
bbe1ae3
Compare
@swift-ci Please test |
@swift-ci Please test |
llvm::outs() << "Frontend Arguments END\n"; | ||
return CI.parseArgs(FrontendArgs, Diags); | ||
}, ForceNoOutputs); | ||
MainExecutablePath, Args, Diags, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MainExecutablePath
is a path to swift-ide-test
So it's not really correct. But it is enough for getSingleFrontendInvocationFromDriverArguments
bbe1ae3
to
e42ce7d
Compare
@swift-ci Please test |
swiftlang/llvm-project#6633 |
Driver uses its path to derive the plugin paths (i.e. 'lib/swift/host/plugins' et al.) Previously it was a constant string 'swiftc' that caused SourceKit failed to find dylib plugins in the toolchain. Since 'SwiftLangSupport' knows the swift-frontend path, use it, but replacing the filename with 'swiftc', to derive the plugin paths. rdar://107849796
e42ce7d
to
3517db4
Compare
@swift-ci Please test |
Driver uses its path to derive the plugin paths (i.e. 'lib/swift/host/plugins' et al.) Previously it was a constant string 'swiftc' that caused SourceKit failed to find dylib plugins in the toolchain. Since 'SwiftLangSupport' knows the swift-frontend path, use it, but replacing the filename with 'swiftc', to derive the plugin paths.
rdar://107849796