File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3773,9 +3773,16 @@ final class SwiftDriverTests: XCTestCase {
3773
3773
]
3774
3774
try localFileSystem. writeFileContents ( ld) { $0 <<< contents }
3775
3775
try localFileSystem. chmod ( . executable, path: AbsolutePath ( ld. pathString) )
3776
+
3777
+ // Drop SWIFT_DRIVER_CLANG_EXEC from the environment so it doesn't
3778
+ // interfere with tool lookup.
3779
+ var env = ProcessEnv . vars
3780
+ env. removeValue ( forKey: " SWIFT_DRIVER_CLANG_EXEC " )
3781
+
3776
3782
var driver = try Driver ( args: [ " swiftc " ,
3777
3783
" -tools-directory " , tmpDir. pathString,
3778
- " foo.swift " ] )
3784
+ " foo.swift " ] ,
3785
+ env: env)
3779
3786
let frontendJobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
3780
3787
XCTAssertEqual ( frontendJobs. count, 2 )
3781
3788
XCTAssertEqual ( frontendJobs [ 1 ] . kind, . link)
You can’t perform that action at this time.
0 commit comments