mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
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:
parent
9da9398bf0
commit
2362ebf483
1 changed files with 1 additions and 0 deletions
|
@ -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$")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue