-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Driver] Derive '-external-plugin-path' #65473
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
[Driver] Derive '-external-plugin-path' #65473
Conversation
@swift-ci Please smoke test |
@@ -377,8 +377,6 @@ void ToolChain::addCommonFrontendArgs(const OutputInfo &OI, | |||
} | |||
|
|||
// Add plugin path options. | |||
inputArgs.AddAllArgs(arguments, options::OPT_plugin_path); | |||
|
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.
There is the same line above (line 239). This was just duplicating -plugin-path
@swift-ci Please Build Toolchain macOS Platform |
lib/Driver/DarwinToolChains.cpp
Outdated
static bool findCurrentSelectedXcodeDir(llvm::SmallVectorImpl<char> &path) { | ||
assert(path.empty()); | ||
|
||
auto xcrunPath = llvm::sys::findProgramByName("xcode-select"); |
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.
xcodeSelectPath
lib/Driver/DarwinToolChains.cpp
Outdated
|
||
auto xcrunPath = llvm::sys::findProgramByName("xcrun"); | ||
if (!xcrunPath.getError()) { | ||
// Explicitly ask for the default toolchain so that we don't find a Clang |
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.
swiftc
in this case
lib/Driver/DarwinToolChains.cpp
Outdated
// Explicitly ask for the default toolchain so that we don't find a Clang | ||
// included with an open-source toolchain. |
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.
Comment doesn't apply here, we're just doing a xcode-select -p
lib/Driver/DarwinToolChains.cpp
Outdated
path::remove_filename(xcodePluginPath); // 'bin' | ||
path::append(xcodePluginPath, "lib", "swift", "host", "plugins"); | ||
|
||
// '${toolchain}/usr/locallib/swift/host/plugins' |
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.
`/local/lib/
3d8b9c9
to
b3024df
Compare
When the current toolchain is not a Xcode toolchain, derive '-external-plugin-path' poinintng Xcode plugins paths, so we can use plugins in Xcode. rdar://108624128
b3024df
to
b0f5c39
Compare
@swift-ci Please smoke test |
@swift-ci Please smoke test |
(libDriver changes corresponding to swiftlang/swift-driver#1320)
When the current toolchain is not a Xcode toolchain, derive '-external-plugin-path' poinintng Xcode plugins paths, so we can use plugins in Xcode.
rdar://108624128