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 CXX version build issue in Apple clang #1784

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

Conversation

infomaniac777
Copy link

Fix CXX version build issue in Apple clang

On the latest Mac OS 15.1, the default C++ version is gnu++98 with the default Apple clang version 16.0.0 compiler.
So the following does not complete successfully with Abseil requiring C++14 as minimum.

cmake -DABSL_BUILD_TESTING=ON -DABSL_USE_GOOGLETEST_HEAD=ON  ..
make -j 4

A check for C++14 being set at minimum is also added to the cmake file so the version failure is notified at an earlier stage when first running cmake.

Copy link

google-cla bot commented Nov 5, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Dragonfly5596
Copy link

cmake -DABSL_BUILD_TESTING=ON -DABSL_USE_GOOGLETEST_HEAD=ON ..
make -j 44

@infomaniac777
Copy link
Author

Hello @Dragonfly5596 , can you please clarify your comment ? Is it to build check with the PR included ?

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