Skip to content

Don’t index files with fallback build settings #1418

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

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 4, 2024

Fallback build settings don’t even have an indexstore path set, so we would never pick up any index data generated from them. Also, indexing with fallback args has some other problems:

  • If it did generate a unit file, we would consider the file’s index up-to-date even if the compiler arguments change, which basically means that we wouldn’t get any up-to-date-index even when we do get build settings for the file.
  • It’s unlikely that the index from a single file with fallback arguments will be very useful as it can’t tie into the rest of the project.

@ahoppen ahoppen requested review from bnbarham and hamishknight June 4, 2024 06:10
@ahoppen ahoppen requested a review from benlangmuir as a code owner June 4, 2024 06:10
@ahoppen
Copy link
Member Author

ahoppen commented Jun 4, 2024

@swift-ci Please test

Fallback build settings don’t even have an indexstore path set, so we would never pick up any index data generated from them. Also, indexing with fallback args has some other problems:
- If it did generate a unit file, we would consider the file’s index up-to-date even if the compiler arguments change, which basically means that we wouldn’t get any up-to-date-index even when we do get build settings for the file.
- It’s unlikely that the index from a single file with fallback arguments will be very useful as it can’t tie into the rest of the project.
@ahoppen ahoppen force-pushed the dont-index-fallback-args branch from 3f7e3b6 to 1553c9c Compare June 4, 2024 14:27
@ahoppen
Copy link
Member Author

ahoppen commented Jun 4, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 4, 2024

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Jun 4, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 6eaa433 into swiftlang:main Jun 4, 2024
3 checks passed
@ahoppen ahoppen deleted the dont-index-fallback-args branch June 4, 2024 18:20
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.

2 participants