@@ -6776,6 +6776,7 @@ final class SwiftDriverTests: XCTestCase {
6776
6776
6777
6777
try withTemporaryDirectory { tmpDir in
6778
6778
var driver = try Driver ( args: [ " swiftc " , " -typecheck " , " foo.swift " ] ,
6779
+ integratedDriver: false ,
6779
6780
compilerExecutableDir: tmpDir)
6780
6781
guard driver. isFrontendArgSupported ( . externalPluginPath) else {
6781
6782
return
@@ -6818,6 +6819,27 @@ final class SwiftDriverTests: XCTestCase {
6818
6819
}
6819
6820
}
6820
6821
6822
+ func testExternalPluginPathsDisabled( ) throws {
6823
+ #if !os(macOS)
6824
+ throw XCTSkip ( " Supported only in macOS " )
6825
+ #endif
6826
+
6827
+ try withTemporaryDirectory { tmpDir in
6828
+ var driver = try Driver ( args: [ " swiftc " , " -typecheck " , " foo.swift " ] ,
6829
+ integratedDriver: true ,
6830
+ compilerExecutableDir: tmpDir)
6831
+ guard driver. isFrontendArgSupported ( . externalPluginPath) else {
6832
+ return
6833
+ }
6834
+
6835
+ let jobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
6836
+ XCTAssertEqual ( jobs. count, 1 )
6837
+ let job = jobs. first!
6838
+
6839
+ XCTAssertFalse ( job. commandLine. contains ( . flag( " -external-plugin-path " ) ) )
6840
+ }
6841
+ }
6842
+
6821
6843
func testClangModuleValidateOnce( ) throws {
6822
6844
let flagTest = try Driver ( args: [ " swiftc " , " -typecheck " , " foo.swift " ] )
6823
6845
guard flagTest. isFrontendArgSupported ( . clangBuildSessionFile) ,
0 commit comments