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

For GCC10, check __cplusplus >= 201709 for c++20 support #949

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

schemborerik
Copy link
Contributor

From here: https://godbolt.org/z/n967rrMGY you can see that using GCC 10 and compiling with -stdc++=20 that __cplusplus evaluates to 201709. Switching to GCC 11, it evaluates to 202002.
This was problematic in our build as ETL_CPP20_SUPPORTED was not being detected correctly and we were having issues with redefinition of char8_t. Tried to workaround by setting ETL_NO_SMALL_CHAR_SUPPORT=0, however parts of our build use -stdc++=17 which would then fail with this flag due to missing definition of char8_t.

Copy link

Review changes with SemanticDiff.

@jwellbelove jwellbelove changed the base branch from master to development August 31, 2024 10:19
@jwellbelove jwellbelove merged commit 5bc74d5 into ETLCPP:development Aug 31, 2024
63 checks passed
jwellbelove pushed a commit that referenced this pull request Aug 31, 2024
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