Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2b6dc2f38e1d232e4d669a18231f039f89b4ccb8
https://github.com/WebKit/WebKit/commit/2b6dc2f38e1d232e4d669a18231f039f89b4ccb8
Author: Geoffrey Garen <[email protected]>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
M Source/ThirdParty/gtest/CMakeLists.txt
M Source/WTF/wtf/PlatformHave.h
M Source/WebCore/CMakeLists.txt
M Source/cmake/OptionsCocoa.cmake
M Source/cmake/OptionsCommon.cmake
M Source/cmake/WebKitCompilerFlags.cmake
M Source/cmake/WebKitMacros.cmake
Log Message:
-----------
[CMake] Skip configure-time compiler and stdlib probes on Apple platforms
https://bugs.webkit.org/show_bug.cgi?id=316357
rdar://178772829
Reviewed by Elliott Williams, Brandon Stewart, and Keith Miller.
Saves 28s (7%) on a clean build.
CMake supports autoconf-like behavior for fine-grained detection of compiler
and standard library features across open source ecosystems. But all that work
is unnecessary on Apple platforms, where we use a consistent SDK + toolchain
pairing, and also unnecessary in WebKit, where we set platform policy using
Platform.h, HAVE(), USE(), etc.
* Source/ThirdParty/gtest/CMakeLists.txt: Limit GCC-only flags to GCC builds.
* Source/WTF/wtf/PlatformHave.h: Drop the !defined(BUILDING_WITH_CMAKE)
guard and build the same way Xcode builds on Darwin.
* Source/WebCore/CMakeLists.txt: Skip checking for shm_open, since we know
libSystem supports it, and even if we did want to do feature detection, we
wouldn't do it at the CMake level.
* Source/cmake/OptionsCocoa.cmake: Skip checking pthread, since we know we have
it.
* Source/cmake/OptionsCommon.cmake: Skip checking libcpp and libc, since we
know we have them.
* Source/cmake/WebKitCompilerFlags.cmake: Skip checking for whether the compiler
supports our flags, since we only use flags the compiler supports.
* Source/cmake/WebKitMacros.cmake: Check Swift compiler version instead of
launching the Swift compiler, since the answers will match.
Canonical link: https://commits.webkit.org/314603@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications