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.
This commit is contained in:
Andreas Kling 2021-08-07 21:29:39 +02:00
parent 9da9398bf0
commit 2362ebf483
Notes: sideshowbarker 2024-07-18 07:18:04 +09:00

View file

@ -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$")