Skip to content

Commit d0803e9

Browse files
authored
Merge pull request swiftlang#11 from benlangmuir/index-store-path-api
[swiftpm] Stop hard-coding the index store path
2 parents 90b0b5e + 31b89d3 commit d0803e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKSwiftPMWorkspace/SwiftPMWorkspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ extension SwiftPMWorkspace: ExternalWorkspace, BuildSettingsProvider {
172172
}
173173

174174
public var indexStorePath: AbsolutePath? {
175-
return buildPath.appending(components: "index", "store")
175+
return buildParameters.indexStoreMode == .off ? nil : buildParameters.indexStore
176176
}
177177

178178
public var indexDatabasePath: AbsolutePath? {

0 commit comments

Comments
 (0)