Index: Source/cmake/WebKitCommon.cmake --- Source/cmake/WebKitCommon.cmake.orig +++ Source/cmake/WebKitCommon.cmake @@ -129,6 +129,8 @@ if (NOT HAS_RUN_WEBKIT_COMMON) set(WTF_CPU_RISCV64 1) elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^loongarch64") set(WTF_CPU_LOONGARCH64 1) + elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "sparc64") + set(WTF_CPU_SPARC64 1) else () set(WTF_CPU_UNKNOWN 1) endif () @@ -200,9 +202,9 @@ if (NOT HAS_RUN_WEBKIT_COMMON) # We cannot check for RUBY_FOUND because it is set only when the full package is installed and # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro # for finding only the Ruby interpreter. - find_package(Ruby 2.5) - if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 2.5) - message(FATAL_ERROR "Ruby 2.5 or higher is required.") + find_package(Ruby ${MODRUBY_LIBREV}) + if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS ${MODRUBY_LIBREV}) + message(FATAL_ERROR "Ruby ${MODRUBY_LIBREV} or higher is required.") endif () # ----------------------------------------------------------------------------- @@ -215,7 +217,7 @@ if (NOT HAS_RUN_WEBKIT_COMMON) include(CheckCXXCompilerFlag) include(CheckCXXSourceCompiles) include(CheckFunctionExists) - include(CheckIncludeFile) + include(CheckIncludeFiles) include(CheckSymbolExists) include(CheckStructHasMember) include(CheckTypeSize)