Skip to content

Commit f048a45

Browse files
committed
always track origins
1 parent d442845 commit f048a45

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Valgrind.cmake

+1-4
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ function(swift_add_valgrind_memcheck target)
302302
_valgrind_arguments_setup(${target} ${valgrind_tool} "${argOption}" "${argSingle}" "${argMulti}" "${ARGN}")
303303

304304
list(APPEND valgrind_tool_options --tool=${valgrind_tool})
305+
list(APPEND valgrind_tool_options --track-origins=yes)
305306

306307
if (x_TRACE_CHILDREN)
307308
list(APPEND valgrind_tool_options --xml=yes --xml-file=${output_file}.xml.%p)
@@ -313,10 +314,6 @@ function(swift_add_valgrind_memcheck target)
313314
list(APPEND valgrind_tool_options --show-reachable=yes)
314315
endif()
315316

316-
if (x_TRACK_ORIGINS)
317-
list(APPEND valgrind_tool_options --track-origins=yes)
318-
endif()
319-
320317
if (x_UNDEF_VALUE_ERRORS)
321318
list(APPEND valgrind_tool_options --undef-value-errors=yes)
322319
endif()

0 commit comments

Comments
 (0)