We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee3844f commit 2831d25Copy full SHA for 2831d25
bin/ruby-build
@@ -315,10 +315,13 @@ build_package_standard() {
315
if [ "${MAKEOPTS+defined}" ]; then
316
MAKE_OPTS="$MAKEOPTS"
317
elif [ -z "${MAKE_OPTS+defined}" ]; then
318
- if [[ "FreeBSD" = "$(uname)" ]]; then
319
- MAKE_OPTS="-B -j 2" # '-j 2' only builds on FreeBSD with the -B argument
320
- else
+ make --version &>/dev/null ; PROBE_GCC_MAKE=$?
+ make -V MAKE_VERSION &>/dev/null ; PROBE_BSD_MAKE=$?
+
321
+ if [ $PROBE_GCC_MAKE -eq 0 ]; then
322
MAKE_OPTS="-j 2"
323
+ elif [ $PROBE_BSD_MAKE -eq 0 ]; then
324
+ MAKE_OPTS="-B -j 2" # '-j 2' only builds on BSD make with the -B argument
325
fi
326
327
0 commit comments