Skip to content

Commit

Permalink
Upgrade GCC requirement to 10.2.0
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=256078
rdar://108647034

Reviewed by Michael Catanzaro.

Based on the roadmap[1], we upgrade GCC requirement to 10.2.0.
This further unlocks many C++20 features, like constinit.

[1]: https://trac.webkit.org/wiki/WebKitGTK/GCCRequirement

* Source/cmake/WebKitCommon.cmake:

Canonical link: https://commits.webkit.org/263510@main
  • Loading branch information
Constellation committed Apr 28, 2023
1 parent 5eb2125 commit 133498a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/cmake/WebKitCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
endif ()

if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9.3.0")
message(FATAL_ERROR "GCC 9.3 or newer is required to build WebKit. Use a newer GCC version or Clang.")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "10.2.0")
message(FATAL_ERROR "GCC 10.2 or newer is required to build WebKit. Use a newer GCC version or Clang.")
endif ()
endif ()

Expand Down

0 comments on commit 133498a

Please sign in to comment.