Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Valgrind.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ endmacro()

function(swift_add_valgrind_memcheck target)
set(argOption SHOW_REACHABLE TRACK_ORIGINS UNDEF_VALUE_ERRORS GENERATE_JUNIT_REPORT)
set(argSingle LEAK_CHECK)
set(argSingle LEAK_CHECK SUPPRESSIONS_FILE)
set(argMulti JUNIT_OPTIONS)

set(valgrind_tool memcheck)
Expand Down Expand Up @@ -322,6 +322,10 @@ function(swift_add_valgrind_memcheck target)
list(APPEND valgrind_tool_options "--leak-check=${x_LEAK_CHECK}")
endif()

if (x_SUPPRESSIONS_FILE)
list(APPEND valgrind_tool_options "--suppressions=${CMAKE_SOURCE_DIR}/${x_SUPPRESSIONS_FILE}")
endif()

setup_custom_target(${valgrind_tool} ${target_name})

if (x_GENERATE_JUNIT_REPORT)
Expand Down