-
Notifications
You must be signed in to change notification settings - Fork 314
If a build server doesn’t specify -index-store-path
in the SourceKit options, add it during background indexing
#2000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We should always infer these from the build system and I can’t think of a reason to override these settings.
@swift-ci Please test |
struct NoIndexStorePathError: Error {} | ||
throw NoIndexStorePathError() | ||
} | ||
if let indexStorePath = args.firstIndex(of: "-index-store-path"), indexStorePath + 1 < args.count { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastIndex
in case there's multiple? lastIndexStorePathArgument
could also use lastIndex
rather than the reverse loop it has now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
8cbb868
to
4b6b243
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
4b6b243
to
a3086d7
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
…t options, add it during background indexing
a3086d7
to
628ce3c
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
Also, remove options to override the index store path and index database path. We should always infer these from the build system and I can’t think of a reason to override these settings.