Skip to content

Commit c735ecc

Browse files
committed
Add suppressions file option to valgrind memcheck
1 parent 361035b commit c735ecc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Valgrind.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ function(swift_add_valgrind_memcheck target)
322322
list(APPEND valgrind_tool_options "--leak-check=${x_LEAK_CHECK}")
323323
endif()
324324

325+
if (x_SUPPRESSIONS_FILE)
326+
list(APPEND valgrind_tool_options "--suppressions=${CMAKE_SOURCE_DIR}/${x_SUPPRESSIONS_FILE}")
327+
endif()
328+
325329
setup_custom_target(${valgrind_tool} ${target_name})
326330

327331
if (x_GENERATE_JUNIT_REPORT)

0 commit comments

Comments
 (0)