summaryrefslogtreecommitdiff
path: root/tools/nix-build.sh
blob: 4712dbeaa35bf922a0a37f37e23874bba99980cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 $@"        \
                                                        \