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

Don't use 'system' include/framework paths as fallback 'user' include/framework paths in the base config #13247

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Feb 7, 2025

It looks like this code was falling back to inserting the compiler default 'system' include paths (and framework search paths) into the 'user' base configuration. I don't think this is correct. If a compiler is not specified (the only case these includes were being used), the detected default compiler will be used (if trusted) and its system include paths used automatically (without requiring them added this way).

Maybe this was intended to fall back to inserting these into the 'user' config when falling back to a detected default compiler that isn't trusted? But if the compiler isn't trusted, we wouldn't have been able to query it for system include paths. In the case of cl.exe (which we don't need to query), that is implicitly trusted (since we don't actually need to query it).

@Colengms Colengms requested a review from a team as a code owner February 7, 2025 00:05
@Colengms Colengms merged commit 60e998b into main Feb 7, 2025
6 checks passed
@Colengms Colengms deleted the coleng/remove_system_includes_from_defaults branch February 7, 2025 01:38
@sean-mcmanus sean-mcmanus added this to the 1.24.0 milestone Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants