diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-01-20 03:19:54 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | ba6487d8c0c4500a773297153f1c56067ba8d31f (patch) | |
tree | 55d01e2d4c4526765b2d6833c7e22dd84fa7b3cd /src | |
parent | ca0cb67cba09deb06cb1748786846ac7557e5c80 (diff) |
Add leak sanitizer
Diffstat (limited to 'src')
-rw-r--r-- | src/CmakeModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CmakeModule.cpp b/src/CmakeModule.cpp index 394acdb..348597d 100644 --- a/src/CmakeModule.cpp +++ b/src/CmakeModule.cpp @@ -151,8 +151,8 @@ namespace sibs { if(config.getSanitize()) { - cmd += TINYDIR_STRING(" \"-CMAKE_C_FLAGS=-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -lasan -lubsan\" " - "\"-CMAKE_CXX_FLAGS=-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -lasan -lubsan\""); + cmd += TINYDIR_STRING(" \"-CMAKE_C_FLAGS=-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -fsanitize=leak -lasan -lubsan -llsan\" " + "\"-CMAKE_CXX_FLAGS=-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -fsanitize=leak -lasan -lubsan -llsan\""); } } switch(config.getPackageType()) |