File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,18 @@ public final class UserToolchain: Toolchain {
411411 derivedSwiftCompiler: AbsolutePath ,
412412 fileSystem: any FileSystem
413413 ) -> ( swiftCFlags: [ String ] , linkerFlags: [ String ] ) {
414+ // If this is CommandLineTools all we need to add is a frameworks path.
415+ if let frameworksPath = try ? AbsolutePath (
416+ validating: " ../../Library/Developer/Frameworks " ,
417+ relativeTo: resolveSymlinks ( derivedSwiftCompiler) . parentDirectory
418+ ) , fileSystem. exists ( frameworksPath. appending ( " Testing.framework " ) ) {
419+ return ( swiftCFlags: [
420+ " -F " , frameworksPath. pathString
421+ ] , linkerFlags: [
422+ " -rpath " , frameworksPath. pathString
423+ ] )
424+ }
425+
414426 guard let toolchainLibDir = try ? toolchainLibDir (
415427 swiftCompilerPath: derivedSwiftCompiler
416428 ) else {
You can’t perform that action at this time.
0 commit comments