summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar lat9nq2021-02-09 21:28:33 -0500
committerGravatar lat9nq2021-02-09 21:28:33 -0500
commita58086ae0ded9412921a1a1f02b30901bfb4e599 (patch)
tree6b0ffa6dbb56ab65130d6063fc4b8e4ec83c2a6b
parentMerge pull request #5901 from lioncash/input-warn (diff)
downloadyuzu-a58086ae0ded9412921a1a1f02b30901bfb4e599.tar.gz
yuzu-a58086ae0ded9412921a1a1f02b30901bfb4e599.tar.xz
yuzu-a58086ae0ded9412921a1a1f02b30901bfb4e599.zip
common: Add -fsized-deallocation as a Clang flag
Prevents an operator delete error when compiling with Clang 11.
-rw-r--r--src/common/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index bfd11e76d..263c457cd 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -206,6 +206,8 @@ if (MSVC)
206else() 206else()
207 target_compile_options(common PRIVATE 207 target_compile_options(common PRIVATE
208 -Werror 208 -Werror
209
210 $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation>
209 ) 211 )
210endif() 212endif()
211 213