diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-02-09 21:28:33 -0500 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-02-09 21:28:33 -0500 |
commit | a58086ae0ded9412921a1a1f02b30901bfb4e599 (patch) | |
tree | 6b0ffa6dbb56ab65130d6063fc4b8e4ec83c2a6b /src | |
parent | 70db238f80c523ac3f807de18e822698cc39a135 (diff) |
common: Add -fsized-deallocation as a Clang flag
Prevents an operator delete error when compiling with Clang 11.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/CMakeLists.txt | 2 |
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) else() target_compile_options(common PRIVATE -Werror + + $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation> ) endif() |