From 79e94bf7669522f6db6dd2e1984f8ddf0f1ca9ad Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 18 Aug 2024 14:13:01 +0300 Subject: [PATCH] Revert "scripts: gha: use 64-bit compiler for 32-bit target for faster compilation on Win32" This reverts commit 3de370f3d51afb9245a9a47427f15713b758373a. --- scripts/gha/build_win32.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/scripts/gha/build_win32.sh b/scripts/gha/build_win32.sh index ed48ad0c..b5ed28a0 100755 --- a/scripts/gha/build_win32.sh +++ b/scripts/gha/build_win32.sh @@ -5,19 +5,13 @@ # Build engine cd $BUILDDIR -if [ "$ARCH" = "i386" ]; then - # use 64-bit compiler crosscompiling for 32-bit for faster compilation - CONFIGURE_FLAGS="--msvc_targets=amd64_x86" -elif [ "$ARCH" = "amd64" ]; then - # we need enabling 64-bit target only on Intel-compatible CPUs - CONFIGURE_FLAGS="-8" -else - die +if [ "$ARCH" = "amd64" ]; then # we need enabling 64-bit target only on Intel-compatible CPUs + AMD64="-8" fi # NOTE: to build with other version use --msvc_version during configuration # NOTE: sometimes you may need to add WinSDK to %PATH% -./waf.bat configure -s "SDL2_VC" -T release --enable-utils --enable-tests --enable-lto $CONFIGURE_FLAGS || die_configure +./waf.bat configure -s "SDL2_VC" -T release --enable-utils --enable-tests --enable-lto $AMD64 || die_configure ./waf.bat build || die ./waf.bat install --destdir=. || die