Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Avoid use of C++20 <ranges> header in GlobalEffects.cpp - #8668

#8668
Merged
juj merged 1 commit into
WebAssembly:mainWebAssembly/binaryen:mainfrom
juj:fix_clang_14_buildjuj/binaryen:fix_clang_14_buildCopy head branch name to clipboard
May 5, 2026
Merged

Avoid use of C++20 <ranges> header in GlobalEffects.cpp#8668
juj merged 1 commit into
WebAssembly:mainWebAssembly/binaryen:mainfrom
juj:fix_clang_14_buildjuj/binaryen:fix_clang_14_buildCopy head branch name to clipboard

Conversation

@juj

@juj juj commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Avoid use of C++20 header in GlobalEffects.cpp, so that the code builds on Clang-14 as well.

@juj
juj requested a review from a team as a code owner May 4, 2026 15:49
@juj
juj requested review from tlively and removed request for a team May 4, 2026 15:49
@juj
juj force-pushed the fix_clang_14_build branch from fbc04a7 to 3caf09d Compare May 4, 2026 17:21
@sbc100

sbc100 commented May 4, 2026

Copy link
Copy Markdown
Member

If we decide we want to support this we should also make sure we have some kind of CI bot that tests with this version of clang and/or xcode.

@juj
juj merged commit 1abcee9 into WebAssembly:main May 5, 2026
16 checks passed
juj added a commit that referenced this pull request May 5, 2026
Clang-13 advertises C++20 support with `__cplusplus >= 202002L`, but it
does not have all the features of C++20.

So instead use the C++20 individual feature testing macros to check for
the various features: https://en.cppreference.com/cpp/feature_test

which Clang-13 accurately reports.

Authored on top of PR #8668,
will rebase before landing, if/when
#8668 is approved.
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.