diff options
author | LC <mathew1800@gmail.com> | 2021-02-09 23:45:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 23:45:52 -0500 |
commit | dee133ab3d28a44e3aaaef0119a20f119553cb7d (patch) | |
tree | ac6f72e1b902638ae87f9e67cb170fa59da3d687 | |
parent | 3c22ce035bc1b1d3b8e507af79bbd25ca5d68c7f (diff) | |
parent | a58086ae0ded9412921a1a1f02b30901bfb4e599 (diff) |
Merge pull request #5904 from lat9nq/common-sized-dealloc
common: Add -fsized-deallocation as a Clang flag
-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() |