Some mingw build fixes for my local build.

This commit is contained in:
Martín Lucas Golini
2026-05-14 19:27:16 -03:00
parent 1b34eb7b2f
commit b00547655d
3 changed files with 15 additions and 2 deletions

View File

@@ -67,8 +67,13 @@ fi
if [[ "$CONFIG" == *"arm64"* ]]; then
bash ./build_sdl2.sh --arch=arm64 || exit 1
else
export CC=x86_64-w64-mingw32-gcc-posix
export CXX=x86_64-w64-mingw32-g++-posix
if command -v x86_64-w64-mingw32-gcc-posix &> /dev/null; then
export CC=x86_64-w64-mingw32-gcc-posix
export CXX=x86_64-w64-mingw32-g++-posix
else
export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++
fi
fi
cd ../../make/windows/ || exit