-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Enable index store based on Clang feature detection #7287
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
@swift-ci please test |
Not really sure if we should land this in the current form, it does make builds on macOS slightly slower for no good reason (since we're always doing the feature detection through shelling out to clang). I see two paths forward:
|
cdd1629
to
687b615
Compare
@swift-ci please test |
@swift-ci please test windows |
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.
Is there any way to disable the index if it isn't wanted?
Sources/Basics/Collections/RandomAccessCollection+Extensions.swift
Outdated
Show resolved
Hide resolved
Sources/Build/BuildDescription/ClangTargetBuildDescription.swift
Outdated
Show resolved
Hide resolved
9177b8f
to
3567d6a
Compare
Not right now, do you should think that should be possible? |
@swift-ci please test |
@swift-ci please test windows |
1 similar comment
@swift-ci please test windows |
@swift-ci please test macOS |
Yes. There's likely an issue for it... somewhere. |
Actually, we do have |
3567d6a
to
1ed277c
Compare
Today, the index store is only enabled on Darwin by default and needs a manual opt-in on other platforms. We can instead switch this to enabling it based on whether the used clang supports `-index-store-path`. rdar://117744039
1ed277c
to
913ed0d
Compare
@swift-ci please test |
@swift-ci please test windows |
Today, the index store is only enabled on Darwin by default and needs a manual opt-in on other platforms. We can instead switch this to enabling it based on whether the used clang supports
-index-store-path
.rdar://117744039