mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 16:40:21 +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
Notes:
sideshowbarker
2024-07-18 07:18:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2362ebf4835
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…
Reference in a new issue