extzstd 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -14
- data/contrib/zstd/CHANGELOG +301 -56
- data/contrib/zstd/CONTRIBUTING.md +169 -72
- data/contrib/zstd/LICENSE +4 -4
- data/contrib/zstd/Makefile +116 -87
- data/contrib/zstd/Package.swift +36 -0
- data/contrib/zstd/README.md +62 -32
- data/contrib/zstd/TESTING.md +2 -3
- data/contrib/zstd/appveyor.yml +52 -136
- data/contrib/zstd/lib/BUCK +5 -7
- data/contrib/zstd/lib/Makefile +225 -222
- data/contrib/zstd/lib/README.md +51 -6
- data/contrib/zstd/lib/common/allocations.h +55 -0
- data/contrib/zstd/lib/common/bits.h +200 -0
- data/contrib/zstd/lib/common/bitstream.h +45 -62
- data/contrib/zstd/lib/common/compiler.h +205 -22
- data/contrib/zstd/lib/common/cpu.h +1 -3
- data/contrib/zstd/lib/common/debug.c +1 -1
- data/contrib/zstd/lib/common/debug.h +12 -19
- data/contrib/zstd/lib/common/entropy_common.c +172 -48
- data/contrib/zstd/lib/common/error_private.c +10 -2
- data/contrib/zstd/lib/common/error_private.h +82 -3
- data/contrib/zstd/lib/common/fse.h +37 -86
- data/contrib/zstd/lib/common/fse_decompress.c +117 -92
- data/contrib/zstd/lib/common/huf.h +99 -166
- data/contrib/zstd/lib/common/mem.h +124 -142
- data/contrib/zstd/lib/common/pool.c +54 -27
- data/contrib/zstd/lib/common/pool.h +10 -4
- data/contrib/zstd/lib/common/portability_macros.h +156 -0
- data/contrib/zstd/lib/common/threading.c +74 -19
- data/contrib/zstd/lib/common/threading.h +5 -10
- data/contrib/zstd/lib/common/xxhash.c +7 -847
- data/contrib/zstd/lib/common/xxhash.h +5568 -167
- data/contrib/zstd/lib/common/zstd_common.c +2 -37
- data/contrib/zstd/lib/common/zstd_deps.h +111 -0
- data/contrib/zstd/lib/common/zstd_internal.h +132 -187
- data/contrib/zstd/lib/common/zstd_trace.h +163 -0
- data/contrib/zstd/lib/compress/clevels.h +134 -0
- data/contrib/zstd/lib/compress/fse_compress.c +83 -157
- data/contrib/zstd/lib/compress/hist.c +27 -29
- data/contrib/zstd/lib/compress/hist.h +2 -2
- data/contrib/zstd/lib/compress/huf_compress.c +916 -279
- data/contrib/zstd/lib/compress/zstd_compress.c +3773 -1019
- data/contrib/zstd/lib/compress/zstd_compress_internal.h +610 -203
- data/contrib/zstd/lib/compress/zstd_compress_literals.c +119 -42
- data/contrib/zstd/lib/compress/zstd_compress_literals.h +16 -6
- data/contrib/zstd/lib/compress/zstd_compress_sequences.c +42 -19
- data/contrib/zstd/lib/compress/zstd_compress_sequences.h +1 -1
- data/contrib/zstd/lib/compress/zstd_compress_superblock.c +49 -317
- data/contrib/zstd/lib/compress/zstd_compress_superblock.h +1 -1
- data/contrib/zstd/lib/compress/zstd_cwksp.h +320 -103
- data/contrib/zstd/lib/compress/zstd_double_fast.c +388 -151
- data/contrib/zstd/lib/compress/zstd_double_fast.h +3 -2
- data/contrib/zstd/lib/compress/zstd_fast.c +729 -265
- data/contrib/zstd/lib/compress/zstd_fast.h +3 -2
- data/contrib/zstd/lib/compress/zstd_lazy.c +1270 -251
- data/contrib/zstd/lib/compress/zstd_lazy.h +61 -1
- data/contrib/zstd/lib/compress/zstd_ldm.c +324 -219
- data/contrib/zstd/lib/compress/zstd_ldm.h +9 -2
- data/contrib/zstd/lib/compress/zstd_ldm_geartab.h +106 -0
- data/contrib/zstd/lib/compress/zstd_opt.c +481 -209
- data/contrib/zstd/lib/compress/zstd_opt.h +1 -1
- data/contrib/zstd/lib/compress/zstdmt_compress.c +181 -457
- data/contrib/zstd/lib/compress/zstdmt_compress.h +34 -113
- data/contrib/zstd/lib/decompress/huf_decompress.c +1199 -565
- data/contrib/zstd/lib/decompress/huf_decompress_amd64.S +576 -0
- data/contrib/zstd/lib/decompress/zstd_ddict.c +12 -12
- data/contrib/zstd/lib/decompress/zstd_ddict.h +2 -2
- data/contrib/zstd/lib/decompress/zstd_decompress.c +627 -157
- data/contrib/zstd/lib/decompress/zstd_decompress_block.c +1086 -326
- data/contrib/zstd/lib/decompress/zstd_decompress_block.h +19 -5
- data/contrib/zstd/lib/decompress/zstd_decompress_internal.h +62 -13
- data/contrib/zstd/lib/deprecated/zbuff.h +1 -1
- data/contrib/zstd/lib/deprecated/zbuff_common.c +1 -1
- data/contrib/zstd/lib/deprecated/zbuff_compress.c +24 -4
- data/contrib/zstd/lib/deprecated/zbuff_decompress.c +3 -1
- data/contrib/zstd/lib/dictBuilder/cover.c +73 -52
- data/contrib/zstd/lib/dictBuilder/cover.h +7 -6
- data/contrib/zstd/lib/dictBuilder/divsufsort.c +1 -1
- data/contrib/zstd/lib/dictBuilder/fastcover.c +44 -35
- data/contrib/zstd/lib/dictBuilder/zdict.c +103 -111
- data/contrib/zstd/lib/legacy/zstd_legacy.h +8 -1
- data/contrib/zstd/lib/legacy/zstd_v01.c +21 -54
- data/contrib/zstd/lib/legacy/zstd_v01.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v02.c +29 -70
- data/contrib/zstd/lib/legacy/zstd_v02.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v03.c +30 -73
- data/contrib/zstd/lib/legacy/zstd_v03.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v04.c +29 -71
- data/contrib/zstd/lib/legacy/zstd_v04.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v05.c +40 -86
- data/contrib/zstd/lib/legacy/zstd_v05.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v06.c +47 -88
- data/contrib/zstd/lib/legacy/zstd_v06.h +1 -1
- data/contrib/zstd/lib/legacy/zstd_v07.c +40 -83
- data/contrib/zstd/lib/legacy/zstd_v07.h +1 -1
- data/contrib/zstd/lib/libzstd.mk +214 -0
- data/contrib/zstd/lib/libzstd.pc.in +7 -6
- data/contrib/zstd/lib/module.modulemap +35 -0
- data/contrib/zstd/lib/{dictBuilder/zdict.h → zdict.h} +203 -34
- data/contrib/zstd/lib/zstd.h +1217 -287
- data/contrib/zstd/lib/{common/zstd_errors.h → zstd_errors.h} +28 -8
- data/ext/extconf.rb +7 -6
- data/ext/extzstd.c +19 -10
- data/ext/extzstd.h +6 -0
- data/ext/libzstd_conf.h +0 -1
- data/ext/zstd_decompress_asm.S +1 -0
- data/gemstub.rb +3 -21
- data/lib/extzstd/version.rb +6 -1
- data/lib/extzstd.rb +0 -2
- data/test/test_basic.rb +0 -5
- metadata +18 -6
data/contrib/zstd/appveyor.yml
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
# Following tests are run _only_ on
|
2
|
-
#
|
3
|
-
# or a branch `visual*`, they will intentionnally trigger `master` tests
|
1
|
+
# Following tests are run _only_ on `release` branch
|
2
|
+
# and on selected feature branch named `appveyorTest` or `visual*`
|
4
3
|
|
5
4
|
-
|
6
5
|
version: 1.0.{build}
|
7
6
|
branches:
|
8
7
|
only:
|
8
|
+
- release
|
9
9
|
- master
|
10
|
-
-
|
10
|
+
- /appveyor*/
|
11
11
|
- /visual*/
|
12
12
|
environment:
|
13
13
|
matrix:
|
14
14
|
- COMPILER: "gcc"
|
15
15
|
HOST: "mingw"
|
16
16
|
PLATFORM: "x64"
|
17
|
-
SCRIPT: "make allzstd MOREFLAGS=-static
|
17
|
+
SCRIPT: "make allzstd MOREFLAGS=-static"
|
18
18
|
ARTIFACT: "true"
|
19
19
|
BUILD: "true"
|
20
20
|
- COMPILER: "gcc"
|
@@ -23,34 +23,15 @@
|
|
23
23
|
SCRIPT: "make allzstd MOREFLAGS=-static"
|
24
24
|
ARTIFACT: "true"
|
25
25
|
BUILD: "true"
|
26
|
-
- COMPILER: "clang"
|
27
|
-
HOST: "mingw"
|
28
|
-
PLATFORM: "x64"
|
29
|
-
SCRIPT: "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make allzstd"
|
30
|
-
BUILD: "true"
|
31
26
|
|
32
|
-
- COMPILER: "
|
33
|
-
HOST: "
|
27
|
+
- COMPILER: "clang-cl"
|
28
|
+
HOST: "cmake-visual"
|
34
29
|
PLATFORM: "x64"
|
35
|
-
SCRIPT: ""
|
36
|
-
TEST: "cmake"
|
37
|
-
|
38
|
-
- COMPILER: "visual"
|
39
|
-
HOST: "visual"
|
40
|
-
PLATFORM: "x64"
|
41
|
-
CONFIGURATION: "Debug"
|
42
|
-
- COMPILER: "visual"
|
43
|
-
HOST: "visual"
|
44
|
-
PLATFORM: "Win32"
|
45
|
-
CONFIGURATION: "Debug"
|
46
|
-
- COMPILER: "visual"
|
47
|
-
HOST: "visual"
|
48
|
-
PLATFORM: "x64"
|
49
|
-
CONFIGURATION: "Release"
|
50
|
-
- COMPILER: "visual"
|
51
|
-
HOST: "visual"
|
52
|
-
PLATFORM: "Win32"
|
53
30
|
CONFIGURATION: "Release"
|
31
|
+
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
32
|
+
CMAKE_GENERATOR_PLATFORM: "x64"
|
33
|
+
CMAKE_GENERATOR_TOOLSET: "LLVM"
|
34
|
+
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
|
54
35
|
|
55
36
|
install:
|
56
37
|
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
|
@@ -92,9 +73,9 @@
|
|
92
73
|
cd programs\ && 7z a -tzip -mx9 zstd-win-binary-%PLATFORM%.zip zstd.exe &&
|
93
74
|
appveyor PushArtifact zstd-win-binary-%PLATFORM%.zip &&
|
94
75
|
cp zstd.exe ..\bin\zstd.exe &&
|
95
|
-
git clone --depth 1 --branch
|
76
|
+
git clone --depth 1 --branch release https://github.com/facebook/zstd &&
|
96
77
|
cd zstd &&
|
97
|
-
git archive --format=tar
|
78
|
+
git archive --format=tar release -o zstd-src.tar &&
|
98
79
|
..\zstd -19 zstd-src.tar &&
|
99
80
|
appveyor PushArtifact zstd-src.tar.zst &&
|
100
81
|
certUtil -hashfile zstd-src.tar.zst SHA256 > zstd-src.tar.zst.sha256.sig &&
|
@@ -104,55 +85,14 @@
|
|
104
85
|
appveyor PushArtifact zstd-win-release-%PLATFORM%.zip
|
105
86
|
)
|
106
87
|
)
|
107
|
-
- if [%HOST%]==[visual] (
|
108
|
-
ECHO *** &&
|
109
|
-
ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% &&
|
88
|
+
- if [%HOST%]==[cmake-visual] (
|
110
89
|
ECHO *** &&
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
ECHO ***
|
117
|
-
ECHO *** &&
|
118
|
-
msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
119
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
120
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
121
|
-
msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
122
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
123
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
124
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2010_%PLATFORM%_%CONFIGURATION%.exe &&
|
125
|
-
ECHO *** &&
|
126
|
-
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
|
127
|
-
ECHO *** &&
|
128
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
129
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
130
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
131
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
132
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
133
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
134
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2012_%PLATFORM%_%CONFIGURATION%.exe &&
|
135
|
-
ECHO *** &&
|
136
|
-
ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% &&
|
137
|
-
ECHO *** &&
|
138
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
139
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
140
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
141
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
142
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
143
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
144
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2013_%PLATFORM%_%CONFIGURATION%.exe &&
|
145
|
-
ECHO *** &&
|
146
|
-
ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
|
147
|
-
ECHO *** &&
|
148
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
149
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
150
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
151
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
152
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
153
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
154
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
|
155
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
|
90
|
+
ECHO *** Building %CMAKE_GENERATOR% ^(%CMAKE_GENERATOR_TOOLSET%^) %PLATFORM%\%CONFIGURATION% &&
|
91
|
+
PUSHD build\cmake &&
|
92
|
+
cmake -DBUILD_TESTING=ON . &&
|
93
|
+
cmake --build . --config %CONFIGURATION% -j4 &&
|
94
|
+
POPD &&
|
95
|
+
ECHO ***
|
156
96
|
)
|
157
97
|
|
158
98
|
test_script:
|
@@ -162,22 +102,12 @@
|
|
162
102
|
- if [%TEST%]==[cmake] (
|
163
103
|
mkdir build\cmake\build &&
|
164
104
|
cd build\cmake\build &&
|
105
|
+
SET FUZZERTEST=-T2mn &&
|
106
|
+
SET ZSTREAM_TESTTIME=-T2mn &&
|
165
107
|
cmake -G "Visual Studio 14 2015 Win64" .. &&
|
166
108
|
cd ..\..\.. &&
|
167
109
|
make clean
|
168
110
|
)
|
169
|
-
- SET "FUZZERTEST=-T30s"
|
170
|
-
- if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
|
171
|
-
CD tests &&
|
172
|
-
SET ZSTD_BIN=./zstd.exe&&
|
173
|
-
SET DATAGEN_BIN=./datagen.exe&&
|
174
|
-
sh -e playTests.sh --test-large-data &&
|
175
|
-
fullbench.exe -i1 &&
|
176
|
-
fullbench.exe -i1 -P0 &&
|
177
|
-
fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% &&
|
178
|
-
fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% &&
|
179
|
-
fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST%
|
180
|
-
)
|
181
111
|
|
182
112
|
|
183
113
|
# The following tests are for regular pushes
|
@@ -188,22 +118,6 @@
|
|
188
118
|
version: 1.0.{build}
|
189
119
|
environment:
|
190
120
|
matrix:
|
191
|
-
- COMPILER: "gcc"
|
192
|
-
HOST: "cygwin"
|
193
|
-
PLATFORM: "x64"
|
194
|
-
- COMPILER: "gcc"
|
195
|
-
HOST: "mingw"
|
196
|
-
PLATFORM: "x64"
|
197
|
-
SCRIPT: "CPPFLAGS=-DDEBUGLEVEL=2 CFLAGS=-Werror make -j allzstd DEBUGLEVEL=2"
|
198
|
-
- COMPILER: "gcc"
|
199
|
-
HOST: "mingw"
|
200
|
-
PLATFORM: "x86"
|
201
|
-
SCRIPT: "CFLAGS=-Werror make -j allzstd"
|
202
|
-
- COMPILER: "clang"
|
203
|
-
HOST: "mingw"
|
204
|
-
PLATFORM: "x64"
|
205
|
-
SCRIPT: "CFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make -j allzstd"
|
206
|
-
|
207
121
|
- COMPILER: "visual"
|
208
122
|
HOST: "visual"
|
209
123
|
PLATFORM: "x64"
|
@@ -221,23 +135,29 @@
|
|
221
135
|
PLATFORM: "Win32"
|
222
136
|
CONFIGURATION: "Release"
|
223
137
|
|
138
|
+
- COMPILER: "gcc"
|
139
|
+
HOST: "cygwin"
|
140
|
+
PLATFORM: "x64"
|
141
|
+
|
142
|
+
- COMPILER: "clang-cl"
|
143
|
+
HOST: "cmake-visual"
|
144
|
+
PLATFORM: "x64"
|
145
|
+
CONFIGURATION: "Release"
|
146
|
+
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
147
|
+
CMAKE_GENERATOR_PLATFORM: "x64"
|
148
|
+
CMAKE_GENERATOR_TOOLSET: "LLVM"
|
149
|
+
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
|
150
|
+
|
224
151
|
install:
|
225
152
|
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
|
226
153
|
- SET PATH_ORIGINAL=%PATH%
|
227
154
|
- if [%HOST%]==[cygwin] (
|
228
155
|
ECHO Installing Cygwin Packages &&
|
229
156
|
C:\cygwin64\setup-x86_64.exe -qnNdO -R "C:\cygwin64" -g -P ^
|
230
|
-
gcc-g++,^
|
231
157
|
gcc,^
|
232
158
|
cmake,^
|
233
159
|
make
|
234
160
|
)
|
235
|
-
- if [%HOST%]==[mingw] (
|
236
|
-
SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" &&
|
237
|
-
SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" &&
|
238
|
-
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe &&
|
239
|
-
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
|
240
|
-
)
|
241
161
|
- IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] (
|
242
162
|
SET ADDITIONALPARAM=/p:LibraryPath="C:\Program Files\Microsoft SDKs\Windows\v7.1\lib\x64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\lib\amd64;"
|
243
163
|
)
|
@@ -250,40 +170,36 @@
|
|
250
170
|
C:\cygwin64\bin\bash --login -c "
|
251
171
|
set -e;
|
252
172
|
cd build/cmake;
|
253
|
-
CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-
|
254
|
-
make -
|
173
|
+
CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T20s -DZSTD_ZSTREAM_FLAGS=-T20s -DZSTD_FULLBENCH_FLAGS=-i0 .;
|
174
|
+
make VERBOSE=1 -j;
|
255
175
|
ctest -V -L Medium;
|
256
176
|
"
|
257
177
|
)
|
258
|
-
- if [%HOST%]==[
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
set "CC=%COMPILER%" &&
|
267
|
-
sh -c "%SCRIPT%"
|
178
|
+
- if [%HOST%]==[cmake-visual] (
|
179
|
+
ECHO *** &&
|
180
|
+
ECHO *** Building %CMAKE_GENERATOR% ^(%CMAKE_GENERATOR_TOOLSET%^) %PLATFORM%\%CONFIGURATION% &&
|
181
|
+
PUSHD build\cmake &&
|
182
|
+
cmake -DBUILD_TESTING=ON . &&
|
183
|
+
cmake --build . --config %CONFIGURATION% -j4 &&
|
184
|
+
POPD &&
|
185
|
+
ECHO ***
|
268
186
|
)
|
269
187
|
- if [%HOST%]==[visual] (
|
270
188
|
ECHO *** &&
|
271
|
-
ECHO *** Building Visual Studio
|
189
|
+
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
|
272
190
|
ECHO *** &&
|
273
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=
|
274
|
-
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
275
|
-
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
|
276
|
-
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
191
|
+
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
277
192
|
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
|
278
|
-
|
279
|
-
|
280
|
-
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
|
193
|
+
msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
|
194
|
+
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe
|
281
195
|
)
|
282
196
|
|
283
197
|
|
284
198
|
test_script:
|
285
199
|
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
|
200
|
+
- SET "FUZZERTEST=-T10s"
|
286
201
|
- if [%HOST%]==[mingw] (
|
287
202
|
set "CC=%COMPILER%" &&
|
203
|
+
make clean &&
|
288
204
|
make check
|
289
|
-
)
|
205
|
+
)
|
data/contrib/zstd/lib/BUCK
CHANGED
@@ -65,9 +65,7 @@ cxx_library(
|
|
65
65
|
name='zdict',
|
66
66
|
header_namespace='',
|
67
67
|
visibility=['PUBLIC'],
|
68
|
-
exported_headers=
|
69
|
-
('dictBuilder', 'zdict.h'),
|
70
|
-
]),
|
68
|
+
exported_headers=['zdict.h'],
|
71
69
|
headers=subdir_glob([
|
72
70
|
('dictBuilder', 'divsufsort.h'),
|
73
71
|
('dictBuilder', 'cover.h'),
|
@@ -131,10 +129,10 @@ cxx_library(
|
|
131
129
|
name='errors',
|
132
130
|
header_namespace='',
|
133
131
|
visibility=['PUBLIC'],
|
134
|
-
exported_headers=
|
135
|
-
|
136
|
-
|
137
|
-
]
|
132
|
+
exported_headers=[
|
133
|
+
'zstd_errors.h',
|
134
|
+
'common/error_private.h',
|
135
|
+
]
|
138
136
|
srcs=['common/error_private.c'],
|
139
137
|
)
|
140
138
|
|