Skip to content

Commit

Permalink
Disable adding '-external-plugin-path' in integrated driver mode
Browse files Browse the repository at this point in the history
rdar://109060298
  • Loading branch information
rintaro committed May 8, 2023
1 parent 661d59f commit bf2de71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftDriver/Toolchains/DarwinToolchain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ public final class DarwinToolchain: Toolchain {
// Pass -external-plugin-path if the current toolchain is not a Xcode
// default toolchain.
if
!driver.integratedDriver,
driver.isFrontendArgSupported(.externalPluginPath),
let xcodeDir = try self.findCurrentSelectedXcodeDir(),
try !self.executableDir.isDescendant(of: xcodeDir),
Expand Down

0 comments on commit bf2de71

Please sign in to comment.