File tree 4 files changed +2
-14
lines changed
4 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 5
5
xcuserdata /
6
6
.swiftpm
7
7
.idea /
8
- .idea /
Original file line number Diff line number Diff line change @@ -145,12 +145,7 @@ extension Toolchain {
145
145
/// looks in the `executableDir`, `xcrunFind` or in the `searchPaths`.
146
146
/// - Parameter executable: executable to look for [i.e. `swift`].
147
147
func lookup( executable: String ) throws -> AbsolutePath {
148
- let filename : String
149
- #if os(Windows)
150
- filename = " \( executable) .exe "
151
- #else
152
- filename = executable
153
- #endif
148
+ let filename = executable + executableFileSuffix
154
149
if let overrideString = envVar ( forExecutable: executable) {
155
150
return try AbsolutePath ( validating: overrideString)
156
151
} else if let toolDir = toolDirectory,
Original file line number Diff line number Diff line change 45
45
if case . subcommand( let subcommand) = mode {
46
46
// We are running as a subcommand, try to find the subcommand adjacent to the executable we are running as.
47
47
// If we didn't find the tool there, let the OS search for it.
48
- #if os(Windows)
49
- let filename = subcommand + " .exe "
50
- #else
51
- let filename = subcommand
52
- #endif
48
+ let filename = subcommand + executableFileSuffix
53
49
let subcommandPath = Process . findExecutable ( arguments [ 0 ] ) ? . parentDirectory. appending ( component: filename)
54
50
?? Process . findExecutable ( filename)
55
51
Original file line number Diff line number Diff line change @@ -970,7 +970,6 @@ extension ModuleDependencyGraph {
970
970
let directlyIinvalidatedNodes = getInvalidatedNodesForSimulatedLoad (
971
971
swiftDepsIndex,
972
972
dependencyDescriptions,
973
- includeAddedExternals: true ,
974
973
interfaceHash,
975
974
includePrivateDeps: includePrivateDeps,
976
975
hadCompilationError: hadCompilationError)
@@ -983,7 +982,6 @@ extension ModuleDependencyGraph {
983
982
func getInvalidatedNodesForSimulatedLoad(
984
983
_ swiftDepsIndex: Int ,
985
984
_ dependencyDescriptions: [ MockDependencyKind : [ String ] ] ,
986
- includeAddedExternals: Bool ,
987
985
_ interfaceHashIfPresent: String ? = nil ,
988
986
includePrivateDeps: Bool = true ,
989
987
hadCompilationError: Bool = false
You can’t perform that action at this time.
0 commit comments