Skip to content

Commit

Permalink
Add memcheck mixin for using valgrind with CMake (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay authored Aug 31, 2022
1 parent 4d30330 commit c75e4b3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mixin:
- gold.mixin
- instrument-functions.mixin
- lld.mixin
- memcheck.mixin
- mold.mixin
- ninja.mixin
- shared.mixin
Expand Down
16 changes: 16 additions & 0 deletions memcheck.mixin
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"build": {
"memcheck": {
"cmake-args": [
"-DMEMORYCHECK_COMMAND_OPTIONS=-q --tool=memcheck --leak-check=yes --num-callers=50 --error-exitcode=1"
]
}
},
"test": {
"memcheck": {
"ctest-args": [
"-D", "ExperimentalMemCheck"
]
}
}
}

0 comments on commit c75e4b3

Please sign in to comment.