Skip to content

Commit

Permalink
fix for freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jan 30, 2020
1 parent 69c3c75 commit 57cf8d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57cf8d3

Please sign in to comment.