Compile in parallel on macOS

This commit is contained in:
Cameron Gutman 2020-05-04 17:49:24 -07:00
parent dfa63297fc
commit 7ca4e49bf5

View file

@ -40,7 +40,7 @@ popd
echo Compiling Moonlight in $BUILD_CONFIG configuration
pushd $BUILD_FOLDER
make $(echo "$BUILD_CONFIG" | tr '[:upper:]' '[:lower:]') || fail "Make failed!"
make -j$(sysctl -n hw.logicalcpu) $(echo "$BUILD_CONFIG" | tr '[:upper:]' '[:lower:]') || fail "Make failed!"
popd
echo Saving dSYM file