diff options
author | Karel Kočí <cynerd@email.cz> | 2024-11-05 15:02:12 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-11-05 15:02:12 +0100 |
commit | b2f1bd289e9bae405f95ba0aa2478da45c07e713 (patch) | |
tree | f29de0d99135b243e22c2890d2fde2bfc26f78a9 | |
parent | 699d10813cd26bec34a7e128c18d9198150f38e8 (diff) | |
download | shellrc-b2f1bd289e9bae405f95ba0aa2478da45c07e713.tar.gz shellrc-b2f1bd289e9bae405f95ba0aa2478da45c07e713.tar.bz2 shellrc-b2f1bd289e9bae405f95ba0aa2478da45c07e713.zip |
dev: add bmmake
This is just a combination of mmake and bmake.
-rw-r--r-- | shellrc.d/dev | 5 |
1 files changed, 5 insertions, 0 deletions
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 |