We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a84e834 commit be57a56Copy full SHA for be57a56
Sources/Workspace/Destination.swift
@@ -84,7 +84,11 @@ public struct Destination {
84
environment: [String:String] = Process.env
85
) throws -> Destination {
86
// Select the correct binDir.
87
- let binDir = binDir ?? Destination.hostBinDir(
+ var customBinDir: AbsolutePath?
88
+ #if DEBUG
89
+ customBinDir = ProcessEnv.vars["SWIFTPM_CUSTOM_BINDIR"].flatMap{ try? AbsolutePath(validating: $0) }
90
+ #endif
91
+ let binDir = customBinDir ?? binDir ?? Destination.hostBinDir(
92
originalWorkingDirectory: originalWorkingDirectory)
93
94
#if os(macOS)
0 commit comments