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

Fix presence detection of libcxx.h #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

polter-rnd
Copy link

We should check libcxx.h is present instead of just checking the compiler.
Because on Windows using clang compiler this file is not present and the compilation fails.

Since mettle already requires C++20, using __has_include feature seems to be the most accurate way of detecting this.

@polter-rnd polter-rnd force-pushed the fix-cxxabi-detection branch from d2308f3 to 818c40c Compare March 19, 2025 15:10
We should check libcxx.h is present instead of just checking the compiler.
Because on Windows using clang compiler this file is not present and the compilation fails.
@polter-rnd polter-rnd force-pushed the fix-cxxabi-detection branch from 818c40c to f6c40b7 Compare March 19, 2025 15:10
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