From 57cf8d3e9a02719708be11a16b53ac6726439a4e Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Thu, 30 Jan 2020 15:10:08 -0800 Subject: [PATCH] fix for freebsd --- build_all.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build_all.sh b/build_all.sh index 73af90429cb0..dfb934043438 100644 --- a/build_all.sh +++ b/build_all.sh @@ -23,7 +23,13 @@ build_nim_csources(){ echo_run sh build.sh $@ else # no args, use multhreaded (5X faster on 16 cores: 10s instead of 50s) - echo_run make -C csources -j + makeX=make + unamestr=$(uname) + if [ "$unamestr" = 'FreeBSD' ]; then + makeX=gmake + fi + # `-j` implies `-j $(sysctl -n hw.ncpu)` + echo_run $makeX -C csources -j fi ) # keep $nim_csources in case needed to investigate bootstrap issues