mirror of
https://github.com/status-im/nimbus-benchmarking.git
synced 2025-02-04 15:14:11 +00:00
play nice with a parent Make
This commit is contained in:
parent
8b767d8b6d
commit
62591bedc8
@ -20,6 +20,17 @@ else
|
||||
GETOPT_BINARY="getopt"
|
||||
fi
|
||||
|
||||
if uname | grep -qiE "mingw|msys"; then
|
||||
# Windows
|
||||
MAKE_CMD=mingw32-make
|
||||
else
|
||||
MAKE_CMD=make
|
||||
fi
|
||||
|
||||
if [[ -z "${MAKE}" ]]; then
|
||||
MAKE=${MAKE_CMD}
|
||||
fi
|
||||
|
||||
# argument parsing
|
||||
! ${GETOPT_BINARY} --test > /dev/null
|
||||
if [ ${PIPESTATUS[0]} != 4 ]; then
|
||||
@ -89,7 +100,7 @@ if [[ -f "research/state_sim.nim" ]]; then
|
||||
BENCHMARKS+=( state_sim )
|
||||
fi
|
||||
|
||||
make -j${NPROC} NIMFLAGS="-f" ${BENCHMARKS[*]}
|
||||
"${MAKE}" -j${NPROC} NIMFLAGS="-f" --no-print-directory ${BENCHMARKS[*]}
|
||||
|
||||
if [[ ${OUTPUT_TYPE} == "jenkins" ]]; then
|
||||
OUT_DIR="."
|
||||
|
Loading…
x
Reference in New Issue
Block a user