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 {
411
411
derivedSwiftCompiler: AbsolutePath ,
412
412
fileSystem: any FileSystem
413
413
) -> ( 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
+
414
426
guard let toolchainLibDir = try ? toolchainLibDir (
415
427
swiftCompilerPath: derivedSwiftCompiler
416
428
) else {
You can’t perform that action at this time.
0 commit comments