diff --git a/platforms/linux/x64/external.sh b/platforms/linux/x64/external.sh index d3e54961c..34496c6e3 100755 --- a/platforms/linux/x64/external.sh +++ b/platforms/linux/x64/external.sh @@ -35,8 +35,8 @@ CACHE_NAME="SDL-${SDL_VERSION}_002" if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then curl -sL https://github.com/libsdl-org/SDL/releases/download/preview-${SDL_VERSION}/SDL3-${SDL_VERSION}.tar.xz -o SDL3-${SDL_VERSION}.tar.xz - tar -xf SDL3-3.1.3.tar.xz - cd SDL3-3.1.3 + tar -xf SDL3-${SDL_VERSION}.tar.xz + cd SDL3-${SDL_VERSION} cmake \ -DSDL_SHARED=ON \ -DSDL_STATIC=OFF \ diff --git a/platforms/osx/x64/external.sh b/platforms/osx/x64/external.sh index d3e54961c..96904c719 100755 --- a/platforms/osx/x64/external.sh +++ b/platforms/osx/x64/external.sh @@ -4,7 +4,7 @@ set -e SDL_VERSION=3.1.3 -NUM_PROCS=$(nproc) +NUM_PROCS=$(sysctl -n hw.ncpu) echo "Building external libraries..." echo " SDL_VERSION: ${SDL_VERSION}" @@ -35,8 +35,8 @@ CACHE_NAME="SDL-${SDL_VERSION}_002" if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then curl -sL https://github.com/libsdl-org/SDL/releases/download/preview-${SDL_VERSION}/SDL3-${SDL_VERSION}.tar.xz -o SDL3-${SDL_VERSION}.tar.xz - tar -xf SDL3-3.1.3.tar.xz - cd SDL3-3.1.3 + tar -xf SDL3-${SDL_VERSION}.tar.xz + cd SDL3-${SDL_VERSION} cmake \ -DSDL_SHARED=ON \ -DSDL_STATIC=OFF \