-
Notifications
You must be signed in to change notification settings - Fork 68
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
Remove -index-store-path for clang vendor is not Apple #142
base: main
Are you sure you want to change the base?
Remove -index-store-path for clang vendor is not Apple #142
Conversation
@swift-ci test |
I think this looks reasonable, thanks! Let's see what we get out of the CI to indicate whether any tests need adjustment. |
@swift-ci test |
1 similar comment
@swift-ci test |
} | ||
commandLine = filteredCommandLine | ||
} | ||
|
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.
Should we just not add the flag in the first place based on vendor? Or is the idea that it would often come in via OTHER_*FLAGS
?
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.
I agree that would be better. Should be able to do that by providing a lookup closure to commandLineFromOptions
(near line 622) and overriding COMPILER_INDEX_STORE_ENABLE to NO.
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.
Sounds good. Working on it 😄
Closes #24
This update removes -index-store-path when the Clang vendor is not Apple.
Feedback on the implementation would be greatly appreciated! Please note that I haven't tested this on Linux or within a Docker environment.
cc: @jakepetroules