File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ public struct Destination: Encodable {
64
64
//
65
65
// This also means that we should have bootstrapped with the same Swift toolchain
66
66
// we're using inside Xcode otherwise we will not be able to load the runtime libraries.
67
- //
68
- // FIXME: We may want to allow overriding this using an env variable but that
69
- // doesn't seem urgent or extremely useful as of now.
70
67
return AbsolutePath ( #file) . parentDirectory
71
68
. parentDirectory. parentDirectory. appending ( components: " .build " , hostTargetTriple. tripleString, " debug " )
72
69
#else
@@ -84,10 +81,9 @@ public struct Destination: Encodable {
84
81
environment: [ String : String ] = ProcessEnv . vars
85
82
) throws -> Destination {
86
83
// Select the correct binDir.
87
- var customBinDir : AbsolutePath ?
88
- #if DEBUG
89
- customBinDir = ProcessEnv . vars [ " SWIFTPM_CUSTOM_BINDIR " ] . flatMap { try ? AbsolutePath ( validating: $0) }
90
- #endif
84
+ let customBinDir = ProcessEnv
85
+ . vars [ " SWIFTPM_CUSTOM_BINDIR " ]
86
+ . flatMap { try ? AbsolutePath ( validating: $0) }
91
87
let binDir = customBinDir ?? binDir ?? Destination . hostBinDir (
92
88
originalWorkingDirectory: originalWorkingDirectory)
93
89
You can’t perform that action at this time.
0 commit comments