Skip to content

Truly independent web browser

Meta: Drop the Clang version checks that every Clang passes

Jelle Raaijmakersdbe47a9bca8a
diff --git a/Meta/CMake/compile_options.cmake b/Meta/CMake/compile_options.cmake
index ce133f20d1a..e848dce8913 100644
--- a/Meta/CMake/compile_options.cmake
+++ b/Meta/CMake/compile_options.cmake
@@ -110,7 +110,7 @@ add_cxx_only_compile_options(-Wno-user-defined-literals)
add_cxx_compile_options(-Werror)
-if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "18")
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_cxx_compile_options(-Wpadded-bitfield)
endif()
diff --git a/Meta/CMake/sanitizers.cmake b/Meta/CMake/sanitizers.cmake
index 47ff5b50199..ec6cafc4aea 100644
--- a/Meta/CMake/sanitizers.cmake
+++ b/Meta/CMake/sanitizers.cmake
@@ -45,7 +45,7 @@ if (ENABLE_UNDEFINED_SANITIZER)
if (UNDEFINED_BEHAVIOR_IS_FATAL)
add_cxx_compile_options(-fno-sanitize-recover=undefined)
endif()
- if (APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang$" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "17")
+ if (APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
add_cxx_compile_options(-fno-sanitize=function)
endif()
# The LibJS runtime keeps its own class pointer where a C++ cell has its vtable pointer, so vptr checks misfire