Add tools/nix-build.sh
This commit is contained in:
parent
e24315d22a
commit
c384530c6f
1 changed files with 20 additions and 0 deletions
20
tools/nix-build.sh
Executable file
20
tools/nix-build.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
flavor=$1
|
||||
shift 1
|
||||
|
||||
JOBS=-j$(sysctl -n hw.activecpu)
|
||||
|
||||
OPTIONS="$flavor --debug --python --ninja $JOBS"
|
||||
#OPTIONS="$flavor --debug --python --ninja --doxygen $JOBS"
|
||||
|
||||
time nice -n 20 nix-shell -p \
|
||||
cmake boost gmp mpfr libedit python texinfo gnused \
|
||||
ninja doxygen \
|
||||
--command "./acprep $OPTIONS make $JOBS $@" && \
|
||||
|
||||
time nice -n 20 nix-shell -p \
|
||||
cmake boost gmp mpfr libedit python texinfo gnused \
|
||||
ninja doxygen \
|
||||
--command "./acprep $OPTIONS check $JOBS $@" \
|
||||
\
|
||||
Loading…
Add table
Reference in a new issue