Explorar o código

common: Add -fsized-deallocation as a Clang flag

Prevents an operator delete error when compiling with Clang 11.
lat9nq %!s(int64=5) %!d(string=hai) anos
pai
achega
a58086ae0d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/common/CMakeLists.txt

+ 2 - 0
src/common/CMakeLists.txt

@@ -206,6 +206,8 @@ if (MSVC)
 else()
   target_compile_options(common PRIVATE
     -Werror
+
+    $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation>
   )
 endif()