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

Use __apple_build_version__ to detect Apple clang #487

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

chrstphrchvz
Copy link
Contributor

…since __APPLE__ is defined by both Apple Clang and LLVM.org Clang on Apple platforms (as mentioned by #39 (comment)).

This ensures BOOST_CLANG_VERSION is defined correctly when using LLVM.org clang.

Compiler Before After
Xcode 14.2 Apple Clang 140000 140000
LLVM.org Clang 17.0.3 140000 170003
LLVM.org Clang 9.0.1 40000 90001

…since __APPLE__ is defined by both Apple Clang and LLVM.org Clang
on Apple platforms.
@jzmaddock jzmaddock merged commit a98574f into boostorg:develop Oct 24, 2023
30 checks passed
@chrstphrchvz chrstphrchvz deleted the patch-1 branch October 24, 2023 23:50
@pdimov
Copy link
Member

pdimov commented Oct 25, 2023

While we're here we should probably update the version check for the newer Xcode releases, as in #488.

They had the perfect opportunity to synchronize their version numbers with upstream LLVM starting with 14.0 and they of course didn't take it.

(Unrelated, we might want to add macos-13 to GHA.)

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.

3 participants