@@ -6734,6 +6734,7 @@ final class SwiftDriverTests: XCTestCase {
6734
6734
6735
6735
try withTemporaryDirectory { tmpDir in
6736
6736
var driver = try Driver ( args: [ " swiftc " , " -typecheck " , " foo.swift " ] ,
6737
+ integratedDriver: false ,
6737
6738
compilerExecutableDir: tmpDir)
6738
6739
guard driver. isFrontendArgSupported ( . externalPluginPath) else {
6739
6740
return
@@ -6776,6 +6777,27 @@ final class SwiftDriverTests: XCTestCase {
6776
6777
}
6777
6778
}
6778
6779
6780
+ func testExternalPluginPathsDisabled( ) throws {
6781
+ #if !os(macOS)
6782
+ throw XCTSkip ( " Supported only in macOS " )
6783
+ #endif
6784
+
6785
+ try withTemporaryDirectory { tmpDir in
6786
+ var driver = try Driver ( args: [ " swiftc " , " -typecheck " , " foo.swift " ] ,
6787
+ integratedDriver: true ,
6788
+ compilerExecutableDir: tmpDir)
6789
+ guard driver. isFrontendArgSupported ( . externalPluginPath) else {
6790
+ return
6791
+ }
6792
+
6793
+ let jobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
6794
+ XCTAssertEqual ( jobs. count, 1 )
6795
+ let job = jobs. first!
6796
+
6797
+ XCTAssertFalse ( job. commandLine. contains ( . flag( " -external-plugin-path " ) ) )
6798
+ }
6799
+ }
6800
+
6779
6801
func testClangModuleValidateOnce( ) throws {
6780
6802
let flagTest = try Driver ( args: [ " swiftc " , " -typecheck " , " foo.swift " ] )
6781
6803
guard flagTest. isFrontendArgSupported ( . clangBuildSessionFile) ,
0 commit comments