Skip to content

Commit 654eeb7

Browse files
satorenFlamefire
authored andcommitted
use valgrind
1 parent 2f20d96 commit 654eeb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,8 @@ endif(KAGUYA_BUILD_BENCHMARK)
107107
endif(EMSCRIPTEN)
108108

109109

110+
111+
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
112+
set(MEMORYCHECK_COMMAND_OPTIONS "--error-exitcode=1 --trace-children=yes --leak-check=full" )
110113
enable_testing()
111114
add_subdirectory(test)

0 commit comments

Comments
 (0)