From b2f1bd289e9bae405f95ba0aa2478da45c07e713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 5 Nov 2024 15:02:12 +0100 Subject: dev: add bmmake This is just a combination of mmake and bmake. --- shellrc.d/dev | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shellrc.d') diff --git a/shellrc.d/dev b/shellrc.d/dev index 74d692b..b6dbab8 100644 --- a/shellrc.d/dev +++ b/shellrc.d/dev @@ -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 -- cgit v1.2.3