From 2c9860cd602007b7fb4cea2769d8aade9c66b0e3 Mon Sep 17 00:00:00 2001 From: Jonne Ransijn Date: Wed, 20 Nov 2024 21:07:58 +0100 Subject: [PATCH] Tests: Fix missing argument removed by `-cc1` This argument is removed (or rather, never added) by `-cc1`, which breaks any builds using GNU libc++, including CI. --- Tests/ClangPlugins/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/ClangPlugins/CMakeLists.txt b/Tests/ClangPlugins/CMakeLists.txt index e6a3c3c309d..45f0ea40a2d 100644 --- a/Tests/ClangPlugins/CMakeLists.txt +++ b/Tests/ClangPlugins/CMakeLists.txt @@ -11,6 +11,7 @@ list(APPEND CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS -Wno-literal-range -Wno-unknown-warning-option -Wno-unqualified-std-cast-call + -fgnuc-version=4.2.1 # NOTE: Clang default as of 10.0.0 ) # Ensure we always check for invalid function field types regardless of the value of ENABLE_CLANG_PLUGINS_INVALID_FUNCTION_MEMBERS