Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

swiftlysingh
Copy link
Contributor

@swiftlysingh swiftlysingh commented Feb 11, 2025

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

@jakepetroules
Copy link
Collaborator

@swift-ci test

@jakepetroules
Copy link
Collaborator

I think this looks reasonable, thanks! Let's see what we get out of the CI to indicate whether any tests need adjustment.

@swiftlysingh
Copy link
Contributor Author

@swift-ci test

1 similar comment
@jakepetroules
Copy link
Collaborator

@swift-ci test

}
commandLine = filteredCommandLine
}

Copy link
Collaborator

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?

Copy link
Collaborator

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.

Copy link
Contributor Author

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect the compiler vendor and disable -index-store-path if not Apple
3 participants