File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ public final class UserToolchain: Toolchain {
301
301
: [ ] )
302
302
+ destination. extraSwiftCFlags
303
303
}
304
-
304
+
305
305
// MARK: - initializer
306
306
307
307
public init ( destination: Destination , environment: [ String : String ] = ProcessEnv . vars) throws {
@@ -450,6 +450,12 @@ public final class UserToolchain: Toolchain {
450
450
)
451
451
}
452
452
453
+ // this tests if we are debugging / testing SwiftPM with CMake / bootstrap
454
+ let cmakeLibrariesPath = applicationPath. parentDirectory. appending ( components: " lib " , " swift " , " pm " )
455
+ if localFileSystem. exists ( cmakeLibrariesPath) {
456
+ return . init( root: cmakeLibrariesPath)
457
+ }
458
+
453
459
// default case - no custom location which will use the one from the toolchain
454
460
return nil
455
461
}
You can’t perform that action at this time.
0 commit comments