Skip to content

[clang] Match -isysroot behaviour with system compiler on Darwin #8116

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

Closed

Conversation

drodriguez
Copy link

The current Apple Clang behaviour is to prefer -isysroot vs libc++ headers side-by-side the compiler. This has been like that for several Xcode versions, at least since Xcode 14.

The code was originally written in D89001 chosing the order that was correct at the time for Apple Clang. In 2023 D157283 tried to flip the order to match the current Apple Clang, but was reverted in 3197357 because it brokes two tests. The code was further changed in llvm#70817 to add a third option.

The changes in this commit try to match Apple Clang, and incorporate the changes in llvm#70817, as well as fixing the tests that broke when D157283 was applied.

The current Apple Clang behaviour is to prefer `-isysroot` vs libc++
headers side-by-side the compiler. This has been like that for several
Xcode versions, at least since Xcode 14.

The code was originally written in D89001 chosing the order that was
correct at the time for Apple Clang. In 2023 D157283 tried to flip the
order to match the current Apple Clang, but was reverted in
3197357 because it brokes two tests.
The code was further changed in llvm#70817 to add a third option.

The changes in this commit try to match Apple Clang, and incorporate the
changes in llvm#70817, as well as fixing the tests that broke when D157283
was applied.
@drodriguez drodriguez closed this Feb 3, 2024
@drodriguez
Copy link
Author

Sorry, intended for upstream.

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.

1 participant