From 2362ebf483558e75e8450e775b36ec43e494bf4d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 7 Aug 2021 21:29:39 +0200 Subject: [PATCH] Build: Add -fsized-deallocation to global CXXFLAGS This is enabled by default for GCC (>=C++14) but apparently not for Clang, which has been causing CLion to get confused about kernel code. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3192236c5f..9e041ff20f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,6 +101,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) add_compile_options(-Wno-literal-suffix) +add_compile_options(-fsized-deallocation) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_compile_options(-Wno-literal-suffix) elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang$")