Build in parallel and tolerate broken install symlinks
This commit is contained in:
1 parent
8ef25d0d31
commit
aaa2f208d6
5 files changed
+16
-2
No files matched your search
@@ -14,3 +14,10 @@ case ":$PATH:" in
|
||||
*) PATH="${PATH:+$PATH:}$HOME/.local/bin" ;;
|
||||
esac
|
||||
export PATH
|
||||
|
||||
cpu_cores=$(nproc 2>/dev/null || echo 1)
|
||||
: "${MAKEFLAGS:=-j$cpu_cores}"
|
||||
: "${CMAKE_BUILD_PARALLEL_LEVEL:=$cpu_cores}"
|
||||
: "${CARGO_BUILD_JOBS:=$cpu_cores}"
|
||||
export MAKEFLAGS CMAKE_BUILD_PARALLEL_LEVEL CARGO_BUILD_JOBS
|
||||
unset cpu_cores
|
||||
Reference in new issue
Block a user