extzstd 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/contrib/zstd/CHANGELOG +188 -1
  4. data/contrib/zstd/CONTRIBUTING.md +157 -74
  5. data/contrib/zstd/LICENSE +4 -4
  6. data/contrib/zstd/Makefile +81 -58
  7. data/contrib/zstd/Package.swift +36 -0
  8. data/contrib/zstd/README.md +59 -35
  9. data/contrib/zstd/TESTING.md +2 -3
  10. data/contrib/zstd/appveyor.yml +49 -136
  11. data/contrib/zstd/lib/BUCK +5 -7
  12. data/contrib/zstd/lib/Makefile +87 -181
  13. data/contrib/zstd/lib/README.md +23 -6
  14. data/contrib/zstd/lib/common/allocations.h +55 -0
  15. data/contrib/zstd/lib/common/bits.h +200 -0
  16. data/contrib/zstd/lib/common/bitstream.h +33 -59
  17. data/contrib/zstd/lib/common/compiler.h +115 -45
  18. data/contrib/zstd/lib/common/cpu.h +1 -1
  19. data/contrib/zstd/lib/common/debug.c +1 -1
  20. data/contrib/zstd/lib/common/debug.h +1 -1
  21. data/contrib/zstd/lib/common/entropy_common.c +15 -37
  22. data/contrib/zstd/lib/common/error_private.c +9 -2
  23. data/contrib/zstd/lib/common/error_private.h +82 -3
  24. data/contrib/zstd/lib/common/fse.h +9 -85
  25. data/contrib/zstd/lib/common/fse_decompress.c +29 -111
  26. data/contrib/zstd/lib/common/huf.h +84 -172
  27. data/contrib/zstd/lib/common/mem.h +58 -49
  28. data/contrib/zstd/lib/common/pool.c +37 -16
  29. data/contrib/zstd/lib/common/pool.h +9 -3
  30. data/contrib/zstd/lib/common/portability_macros.h +156 -0
  31. data/contrib/zstd/lib/common/threading.c +68 -14
  32. data/contrib/zstd/lib/common/threading.h +5 -10
  33. data/contrib/zstd/lib/common/xxhash.c +7 -809
  34. data/contrib/zstd/lib/common/xxhash.h +5568 -167
  35. data/contrib/zstd/lib/common/zstd_common.c +1 -36
  36. data/contrib/zstd/lib/common/zstd_deps.h +1 -1
  37. data/contrib/zstd/lib/common/zstd_internal.h +64 -150
  38. data/contrib/zstd/lib/common/zstd_trace.h +163 -0
  39. data/contrib/zstd/lib/compress/clevels.h +134 -0
  40. data/contrib/zstd/lib/compress/fse_compress.c +69 -150
  41. data/contrib/zstd/lib/compress/hist.c +1 -1
  42. data/contrib/zstd/lib/compress/hist.h +1 -1
  43. data/contrib/zstd/lib/compress/huf_compress.c +773 -251
  44. data/contrib/zstd/lib/compress/zstd_compress.c +2650 -826
  45. data/contrib/zstd/lib/compress/zstd_compress_internal.h +509 -180
  46. data/contrib/zstd/lib/compress/zstd_compress_literals.c +117 -40
  47. data/contrib/zstd/lib/compress/zstd_compress_literals.h +16 -6
  48. data/contrib/zstd/lib/compress/zstd_compress_sequences.c +28 -19
  49. data/contrib/zstd/lib/compress/zstd_compress_sequences.h +1 -1
  50. data/contrib/zstd/lib/compress/zstd_compress_superblock.c +33 -305
  51. data/contrib/zstd/lib/compress/zstd_compress_superblock.h +1 -1
  52. data/contrib/zstd/lib/compress/zstd_cwksp.h +266 -85
  53. data/contrib/zstd/lib/compress/zstd_double_fast.c +369 -132
  54. data/contrib/zstd/lib/compress/zstd_double_fast.h +3 -2
  55. data/contrib/zstd/lib/compress/zstd_fast.c +722 -258
  56. data/contrib/zstd/lib/compress/zstd_fast.h +3 -2
  57. data/contrib/zstd/lib/compress/zstd_lazy.c +1105 -360
  58. data/contrib/zstd/lib/compress/zstd_lazy.h +41 -1
  59. data/contrib/zstd/lib/compress/zstd_ldm.c +272 -208
  60. data/contrib/zstd/lib/compress/zstd_ldm.h +3 -2
  61. data/contrib/zstd/lib/compress/zstd_ldm_geartab.h +106 -0
  62. data/contrib/zstd/lib/compress/zstd_opt.c +324 -197
  63. data/contrib/zstd/lib/compress/zstd_opt.h +1 -1
  64. data/contrib/zstd/lib/compress/zstdmt_compress.c +109 -53
  65. data/contrib/zstd/lib/compress/zstdmt_compress.h +9 -6
  66. data/contrib/zstd/lib/decompress/huf_decompress.c +1071 -539
  67. data/contrib/zstd/lib/decompress/huf_decompress_amd64.S +576 -0
  68. data/contrib/zstd/lib/decompress/zstd_ddict.c +4 -4
  69. data/contrib/zstd/lib/decompress/zstd_ddict.h +1 -1
  70. data/contrib/zstd/lib/decompress/zstd_decompress.c +507 -82
  71. data/contrib/zstd/lib/decompress/zstd_decompress_block.c +962 -310
  72. data/contrib/zstd/lib/decompress/zstd_decompress_block.h +14 -3
  73. data/contrib/zstd/lib/decompress/zstd_decompress_internal.h +54 -6
  74. data/contrib/zstd/lib/deprecated/zbuff.h +1 -1
  75. data/contrib/zstd/lib/deprecated/zbuff_common.c +1 -1
  76. data/contrib/zstd/lib/deprecated/zbuff_compress.c +24 -4
  77. data/contrib/zstd/lib/deprecated/zbuff_decompress.c +3 -1
  78. data/contrib/zstd/lib/dictBuilder/cover.c +44 -32
  79. data/contrib/zstd/lib/dictBuilder/cover.h +6 -5
  80. data/contrib/zstd/lib/dictBuilder/divsufsort.c +1 -1
  81. data/contrib/zstd/lib/dictBuilder/fastcover.c +24 -16
  82. data/contrib/zstd/lib/dictBuilder/zdict.c +88 -95
  83. data/contrib/zstd/lib/legacy/zstd_legacy.h +8 -1
  84. data/contrib/zstd/lib/legacy/zstd_v01.c +16 -53
  85. data/contrib/zstd/lib/legacy/zstd_v01.h +1 -1
  86. data/contrib/zstd/lib/legacy/zstd_v02.c +24 -69
  87. data/contrib/zstd/lib/legacy/zstd_v02.h +1 -1
  88. data/contrib/zstd/lib/legacy/zstd_v03.c +25 -72
  89. data/contrib/zstd/lib/legacy/zstd_v03.h +1 -1
  90. data/contrib/zstd/lib/legacy/zstd_v04.c +23 -69
  91. data/contrib/zstd/lib/legacy/zstd_v04.h +1 -1
  92. data/contrib/zstd/lib/legacy/zstd_v05.c +35 -85
  93. data/contrib/zstd/lib/legacy/zstd_v05.h +1 -1
  94. data/contrib/zstd/lib/legacy/zstd_v06.c +42 -87
  95. data/contrib/zstd/lib/legacy/zstd_v06.h +1 -1
  96. data/contrib/zstd/lib/legacy/zstd_v07.c +35 -82
  97. data/contrib/zstd/lib/legacy/zstd_v07.h +1 -1
  98. data/contrib/zstd/lib/libzstd.mk +214 -0
  99. data/contrib/zstd/lib/libzstd.pc.in +4 -3
  100. data/contrib/zstd/lib/module.modulemap +35 -0
  101. data/contrib/zstd/lib/{dictBuilder/zdict.h → zdict.h} +202 -33
  102. data/contrib/zstd/lib/zstd.h +922 -293
  103. data/contrib/zstd/lib/{common/zstd_errors.h → zstd_errors.h} +27 -8
  104. data/ext/extconf.rb +7 -6
  105. data/ext/extzstd.c +13 -10
  106. data/ext/libzstd_conf.h +0 -1
  107. data/ext/zstd_decompress_asm.S +1 -0
  108. metadata +16 -5
@@ -1,20 +1,20 @@
1
- # Following tests are run _only_ on master branch
2
- # To reproduce these tests, it's possible to push into a branch `appveyorTest`
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
- - appveyorTest
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 && make -C tests fullbench-lib"
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: "gcc"
33
- HOST: "mingw"
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 master https://github.com/facebook/zstd &&
76
+ git clone --depth 1 --branch release https://github.com/facebook/zstd &&
96
77
  cd zstd &&
97
- git archive --format=tar master -o zstd-src.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
- msbuild "build\VS2008\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v90 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
112
- DIR build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\*.exe &&
113
- MD5sum build/VS2008/bin/%PLATFORM%/%CONFIGURATION%/*.exe &&
114
- COPY build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2008_%PLATFORM%_%CONFIGURATION%.exe &&
115
- ECHO *** &&
116
- ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% &&
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:
@@ -168,18 +108,6 @@
168
108
  cd ..\..\.. &&
169
109
  make clean
170
110
  )
171
- - SET "FUZZERTEST=-T30s"
172
- - if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
173
- CD tests &&
174
- SET ZSTD_BIN=./zstd.exe&&
175
- SET DATAGEN_BIN=./datagen.exe&&
176
- sh -e playTests.sh --test-large-data &&
177
- fullbench.exe -i1 &&
178
- fullbench.exe -i1 -P0 &&
179
- fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% &&
180
- fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% &&
181
- fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST%
182
- )
183
111
 
184
112
 
185
113
  # The following tests are for regular pushes
@@ -190,22 +118,6 @@
190
118
  version: 1.0.{build}
191
119
  environment:
192
120
  matrix:
193
- - COMPILER: "gcc"
194
- HOST: "cygwin"
195
- PLATFORM: "x64"
196
- - COMPILER: "gcc"
197
- HOST: "mingw"
198
- PLATFORM: "x64"
199
- SCRIPT: "CFLAGS=-Werror make -j allzstd DEBUGLEVEL=2"
200
- - COMPILER: "gcc"
201
- HOST: "mingw"
202
- PLATFORM: "x86"
203
- SCRIPT: "CFLAGS=-Werror make -j allzstd"
204
- - COMPILER: "clang"
205
- HOST: "mingw"
206
- PLATFORM: "x64"
207
- SCRIPT: "CFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make -j allzstd"
208
-
209
121
  - COMPILER: "visual"
210
122
  HOST: "visual"
211
123
  PLATFORM: "x64"
@@ -223,23 +135,29 @@
223
135
  PLATFORM: "Win32"
224
136
  CONFIGURATION: "Release"
225
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
+
226
151
  install:
227
152
  - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
228
153
  - SET PATH_ORIGINAL=%PATH%
229
154
  - if [%HOST%]==[cygwin] (
230
155
  ECHO Installing Cygwin Packages &&
231
156
  C:\cygwin64\setup-x86_64.exe -qnNdO -R "C:\cygwin64" -g -P ^
232
- gcc-g++,^
233
157
  gcc,^
234
158
  cmake,^
235
159
  make
236
160
  )
237
- - if [%HOST%]==[mingw] (
238
- SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" &&
239
- SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" &&
240
- COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe &&
241
- COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
242
- )
243
161
  - IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] (
244
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;"
245
163
  )
@@ -252,41 +170,36 @@
252
170
  C:\cygwin64\bin\bash --login -c "
253
171
  set -e;
254
172
  cd build/cmake;
255
- CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T30s -DZSTD_ZSTREAM_FLAGS=-T30s .;
256
- make -j4;
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;
257
175
  ctest -V -L Medium;
258
176
  "
259
177
  )
260
- - if [%HOST%]==[mingw] (
261
- ( if [%PLATFORM%]==[x64] (
262
- SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%"
263
- ) else if [%PLATFORM%]==[x86] (
264
- SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%"
265
- ) ) &&
266
- make -v &&
267
- sh -c "%COMPILER% -v" &&
268
- set "CC=%COMPILER%" &&
269
- 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 ***
270
186
  )
271
187
  - if [%HOST%]==[visual] (
272
188
  ECHO *** &&
273
- ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
189
+ ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
274
190
  ECHO *** &&
275
- 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" &&
276
- DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
277
- MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
278
- 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" &&
279
192
  DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
280
- MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
281
- COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
282
- 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
283
195
  )
284
196
 
285
197
 
286
198
  test_script:
287
199
  - ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
200
+ - SET "FUZZERTEST=-T10s"
288
201
  - if [%HOST%]==[mingw] (
289
202
  set "CC=%COMPILER%" &&
290
203
  make clean &&
291
204
  make check
292
- )
205
+ )
@@ -65,9 +65,7 @@ cxx_library(
65
65
  name='zdict',
66
66
  header_namespace='',
67
67
  visibility=['PUBLIC'],
68
- exported_headers=subdir_glob([
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=subdir_glob([
135
- ('common', 'error_private.h'),
136
- ('common', 'zstd_errors.h'),
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