Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

common: Add -fsized-deallocation as a Clang flag

lat9nq19dad3e31938
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index bfd11e76da..263c457cd7 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -206,6 +206,8 @@ if (MSVC)
else()
target_compile_options(common PRIVATE
-Werror
+
+ $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation>
)
endif()