Skip to content

Commit 47e28b8

Browse files
committed
Updated for zstd 1.4.4
1 parent 4ba35cb commit 47e28b8

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

build/helpers/dependencies.cmd

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if "%PRODUCT_NAME%" == "PostgresPro" goto :SKIP_ZSTD
2828

2929
:ZSTD
3030
TITLE "Building libzstd"
31-
IF "ZSTD_RELEASE" == "" set ZSTD_RELEASE=1.1.0
31+
IF "ZSTD_RELEASE" == "" set ZSTD_RELEASE=1.4.4
3232
CD /D %DOWNLOADS_DIR%
3333
wget -O zstd-%ZSTD_RELEASE%.zip --no-check-certificate -c https://github.com/facebook/zstd/archive/v%ZSTD_RELEASE%.zip
3434
rm -rf %DEPENDENCIES_SRC_DIR%/zstd-%ZSTD_RELEASE%
@@ -37,32 +37,19 @@ CD /D %DEPENDENCIES_SRC_DIR%
3737
7z x %DOWNLOADS_DIR%\zstd-%ZSTD_RELEASE%.zip
3838
CD zstd-%ZSTD_RELEASE%
3939

40-
IF %SDK% == MSVC2017 (
4140
CD build/VS2010
42-
msbuild zstd.sln /m /p:Configuration=Release /p:Platform=%Platform% /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
41+
msbuild zstd.sln /m /t:Clean,Build /p:Configuration=Release /p:Platform=%Platform% /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
4342
CD ../..
44-
GOTO :ENDZSTD
45-
)
4643

47-
IF %SDK% == MSVC2019 (
48-
CD build/VS2010
49-
rem call "./../VS_Scripts/build.VS%REDIST_YEAR%.cmd" || GOTO :ERROR
50-
rem call "./../VS_Scripts/build.generic.cmd" VS2017 x64 Release v141 || GOTO :ERROR
51-
msbuild zstd.sln /m /p:Configuration=Release /p:Platform=%Platform% /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
52-
CD ../..
53-
GOTO :ENDZSTD
54-
)
55-
call build/VS_Scripts/build.VS%REDIST_YEAR%.cmd || GOTO :ERROR
44+
rem Not working on 1.4.4, problem with /p:OutDir: fatal error LNK1181: cannot open input file 'libzstd.lib' for fullbench-dll.vcxproj
45+
rem call build/VS_Scripts/build.VS%REDIST_YEAR%.cmd || GOTO :ERROR
5646

57-
:ENDZSTD
5847
MKDIR %DEPENDENCIES_BIN_DIR%\zstd
5948
cp lib\zstd.h %DEPENDENCIES_BIN_DIR%\zstd
6049
if %ARCH% == X86 (
61-
cp -va build/VS_Scripts/BIN/Release/Win32/zstdlib_x86* %DEPENDENCIES_BIN_DIR%\zstd
50+
cp -va build/VS2010/bin/Win32_Release/libzstd* %DEPENDENCIES_BIN_DIR%\zstd
6251
) else (
63-
cp -va build/VS_Scripts/BIN/Release/x64/zstdlib_x64* %DEPENDENCIES_BIN_DIR%\zstd
6452
cp -va build/VS2010/bin/x64_Release/libzstd* %DEPENDENCIES_BIN_DIR%\zstd
65-
cp -va build/VS2010/bin/x64/Release/zstdlib_x64* %DEPENDENCIES_BIN_DIR%\zstd
6653
)
6754
7z a -r %DOWNLOADS_DIR%\%DEPS_ZIP% %DEPENDENCIES_BIN_DIR%\zstd
6855

build/helpers/setvars.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SET GETTEXT_VER=0.19.8
99
SET LIBSSH2_VER=1.6.0
1010
SET WXWIDGETS_VER=3.0.2
1111
SET EDITLINE_VER=2.205
12-
SET ZSTD_RELEASE=1.1.0
12+
SET ZSTD_RELEASE=1.4.4
1313

1414
REM Path vars
1515
SET PERL32_PATH=C:\Perl

0 commit comments

Comments
 (0)