summaryrefslogtreecommitdiffstats
path: root/win32_deps_build.sh
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-07-28 11:01:06 +0200
committerKefu Chai <kchai@redhat.com>2021-07-29 06:13:26 +0200
commitb04248172d753c1bea9e30af537d5077a1cac251 (patch)
tree15fbccf65d1a66690b4f52f665d27fb012bf2dc9 /win32_deps_build.sh
parentcompression/snappy: use uint32_t to be compatible with 1.1.9 (diff)
downloadceph-b04248172d753c1bea9e30af537d5077a1cac251.tar.xz
ceph-b04248172d753c1bea9e30af537d5077a1cac251.zip
win32_deps_build.sh: bump snappy version to 1.1.9
in snappy, the commit of 26102a0c66175bc39edbf484c994a21902e986dc fixes the SNAPPY_VERSION generation. and this commit was included by v1.1.8 and v1.1.9. also, in v1.1.9, a change was introduced, where the function signature was changed, and more importantly, this change is not backward compatible: < bool GetUncompressedLength(Source* source, uint32_t* result); --- > bool GetUncompressedLength(Source* source, uint32* result); see also, https://tracker.ceph.com/issues/50934 so we check SNAPPY_VERSION to tell if we should use `uint32_t` or `uint32`. in this change, snappy version used to build win32 client is bumped to the latest stable version, v1.1.9, to include the fix of SNAPPY_VERSION. this paves the road to fix of https://tracker.ceph.com/issues/50934 Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'win32_deps_build.sh')
-rwxr-xr-xwin32_deps_build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32_deps_build.sh b/win32_deps_build.sh
index 5942e9cda12..9e753d1e309 100755
--- a/win32_deps_build.sh
+++ b/win32_deps_build.sh
@@ -33,7 +33,7 @@ backtraceDir="${depsToolsetDir}/libbacktrace"
backtraceSrcDir="${depsSrcDir}/libbacktrace"
snappySrcDir="${depsSrcDir}/snappy"
snappyDir="${depsToolsetDir}/snappy"
-snappyTag="1.1.7"
+snappyTag="1.1.9"
# Additional Windows libraries, which aren't provided by Mingw
winLibDir="${depsToolsetDir}/windows/lib"
@@ -233,6 +233,7 @@ cmake -DCMAKE_INSTALL_PREFIX=$snappyDir \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DSNAPPY_BUILD_TESTS=OFF \
+ -DSNAPPY_BUILD_BENCHMARKS=OFF \
-DCMAKE_TOOLCHAIN_FILE=$MINGW_CMAKE_FILE \
../
_make