Skip to content

Commit 4c0b934

Browse files
committed
Fixed for 32 bit build
1 parent 6d81a21 commit 4c0b934

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

build/helpers/postgres.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ GOTO :NOTAR
3535
wget --no-check-certificate %PGURL% -O postgresql-%PGVER%.tar.bz2 || GOTO :ERROR
3636
rm -rf %BUILD_DIR%\postgresql
3737
MKDIR %BUILD_DIR%\postgresql
38-
tar xf postgres*-%PGVER%.tar.bz2 -C %BUILD_UDIR%/postgresql || GOTO :ERROR
38+
%MSYS2_PATH%\tar xf postgres*-%PGVER%.tar.bz2 -C %BUILD_UDIR%/postgresql || GOTO :ERROR
3939
CD /D %BUILD_DIR%\postgresql\*%PGVER%* || GOTO :ERROR
4040

4141
:NOTAR

build/helpers/setvars.cmd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ SET PYTHON32_PATH=C:\Python27x86
2121
SET PYTHON64_PATH=C:\Python27x64
2222
SET ZIP_PATH=C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip
2323
SET NSIS_PATH=C:\Program Files (x86)\NSIS
24-
SET MSYS2_PATH=C:\msys32\usr\bin;C:\msys64\usr\bin
24+
SET MSYS2_PATH=C:\msys32\usr\bin
25+
rem ;C:\msys64\usr\bin
2526
SET PATH=%PATH%;%ZIP_PATH%;%MSYS2_PATH%;%NSIS_PATH%
2627
SET PERL5LIB=.
2728

@@ -30,8 +31,6 @@ IF EXIST "%PERL32_BIN%" SET PERL_EXE=%PERL32_BIN%\perl
3031
IF EXIST "%PERL64_BIN%" SET PATH=%PERL64_BIN%;%PATH%
3132
IF EXIST "%PERL64_BIN%" SET PERL_EXE=%PERL64_BIN%\perl
3233

33-
IF %ARCH% == X86 SET Platform=Win32
34-
IF %ARCH% == X64 SET Platform=X64
3534
IF %SDK% == SDK71 (
3635
SET REDIST_YEAR=2010
3736
SET PlatformToolset=v100
@@ -71,6 +70,10 @@ IF %SDK% == MSVC2019 (
7170
IF %ARCH% == X64 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 || GOTO :ERROR
7271
)
7372

73+
rem vcvarsall of VS 2019 rewrite this variable
74+
IF %ARCH% == X86 SET Platform=Win32
75+
IF %ARCH% == X64 SET Platform=X64
76+
7477

7578
REM As we use Msys2 for build we need to install useful packages we will use
7679
@ECHO "Current PATH is:"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy