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

[LibWebRTC] Fix build with CMake >= 3.26 #11858

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

Conversation

hwti
Copy link
Contributor

@hwti hwti commented Mar 23, 2023

e23fe1f

[LibWebRTC] Fix build with CMake >= 3.26
https://bugs.webkit.org/show_bug.cgi?id=254323

Reviewed by NOBODY (OOPS!).

Starting from CMake 3.26, the flags from CMAKE_CXX_STANDARD are moved
before the ones from target_compile_options, so libwebrtc is compiled
in C++11 instead of the default C++20.
It fails in Source/third_party/abseil-cpp/absl/base/policy_checks.h,
which wants C++14.

e23fe1f

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
❌ πŸ§ͺ api-ios ❌ πŸ§ͺ mac-wk1 βœ… πŸ§ͺ gtk-wk2
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2 ⏳ πŸ§ͺ api-gtk
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch-sim

https://bugs.webkit.org/show_bug.cgi?id=254323

Reviewed by NOBODY (OOPS!).

Starting from CMake 3.26, the flags from CMAKE_CXX_STANDARD are moved
before the ones from target_compile_options, so libwebrtc is compiled
in C++11 instead of the default C++20.
It fails in Source/third_party/abseil-cpp/absl/base/policy_checks.h,
which wants C++14.
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Mar 23, 2023
@hwti
Copy link
Contributor Author

hwti commented Mar 23, 2023

cc @alexgcastro @youennf (from d6dd8ba which added the -std=gnu++11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merging-blocked Applied to prevent a change from being merged
Projects
None yet
3 participants