aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/dev
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc.d/dev')
-rw-r--r--shellrc.d/dev17
1 files changed, 11 insertions, 6 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index 2934e87..b6dbab8 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -2,12 +2,12 @@
if command -v valgrind >/dev/null; then
- alias memcheck="valgrind --track-fds=yes --leak-check=full --track-origins=yes"
- alias callgrind="valgrind --tool=callgrind"
- alias massif="valgrind --tool=massif"
- alias drd="valgrind --tool=drd"
- alias helgrind="valgrind --tool=helgrind"
- alias dhat="valgrind --tool=dhat"
+ alias memcheck="valgrind --error-exitcode=118 --track-fds=yes --leak-check=full --track-origins=yes"
+ alias callgrind="valgrind --error-exitcode=118 --tool=callgrind"
+ alias massif="valgrind --error-exitcode=118 --tool=massif"
+ alias drd="valgrind --error-exitcode=118 --tool=drd"
+ alias helgrind="valgrind --error-exitcode=118 --tool=helgrind"
+ alias dhat="valgrind --error-exitcode=118 --tool=dhat"
fi
@@ -61,6 +61,11 @@ if command -v bear >/dev/null; then
bear --output build/compile_commands.json --append -- make "$@"
}
+ bmmake() {
+ mkdir -p build
+ bear --output build/compile_commands.json --append -- make "-j$(($(nproc) * 2))" "-l$(nproc)" "$@"
+ }
+
alias mbmake='bmake -j$(($(nproc) * 2)) -l$(nproc)'
fi