My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: set ZSTD_LEGACY_SUPPORT=0 in remaining build systems

Summary:
Completes the transition to disabled legacy support by default across all build systems. This follows up on the previous Makefile and CMake changes to ensure consistent default behavior regardless of the build system used.

Updated build configurations: Meson, tests/Makefile, Visual Studio 2008/2010 projects, and BUCK.

Test Plan:
Verified changes compile correctly via `make lib-release`. Build system configurations have been updated consistently across all platforms.

authored by

Yann Collet and committed by
Yann Collet
ba819cfc 18cfc000

+24 -24
+4 -4
vendor/git/zstd-c/build/VS2008/zstd/zstd.vcproj
··· 45 45 Name="VCCLCompilerTool" 46 46 Optimization="0" 47 47 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\dictBuilder;$(SolutionDir)..\..\lib\compress" 48 - PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE" 48 + PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE" 49 49 MinimalRebuild="true" 50 50 BasicRuntimeChecks="3" 51 51 RuntimeLibrary="3" ··· 122 122 EnableIntrinsicFunctions="true" 123 123 OmitFramePointers="true" 124 124 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\dictBuilder;$(SolutionDir)..\..\lib\compress" 125 - PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE" 125 + PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE" 126 126 RuntimeLibrary="0" 127 127 EnableFunctionLevelLinking="true" 128 128 UsePrecompiledHeader="0" ··· 197 197 Name="VCCLCompilerTool" 198 198 Optimization="0" 199 199 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\dictBuilder;$(SolutionDir)..\..\lib\compress" 200 - PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE" 200 + PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE" 201 201 MinimalRebuild="true" 202 202 BasicRuntimeChecks="3" 203 203 RuntimeLibrary="3" ··· 275 275 EnableIntrinsicFunctions="true" 276 276 OmitFramePointers="true" 277 277 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib\dictBuilder;$(SolutionDir)..\..\lib\compress" 278 - PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE" 278 + PreprocessorDefinitions="ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE" 279 279 RuntimeLibrary="0" 280 280 EnableFunctionLevelLinking="true" 281 281 UsePrecompiledHeader="0"
+4 -4
vendor/git/zstd-c/build/VS2008/zstdlib/zstdlib.vcproj
··· 45 45 Name="VCCLCompilerTool" 46 46 Optimization="0" 47 47 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\dictBuilder" 48 - PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE" 48 + PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE" 49 49 MinimalRebuild="true" 50 50 BasicRuntimeChecks="3" 51 51 RuntimeLibrary="3" ··· 121 121 EnableIntrinsicFunctions="true" 122 122 OmitFramePointers="true" 123 123 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\dictBuilder" 124 - PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE" 124 + PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE" 125 125 RuntimeLibrary="0" 126 126 EnableFunctionLevelLinking="true" 127 127 UsePrecompiledHeader="0" ··· 195 195 Name="VCCLCompilerTool" 196 196 Optimization="0" 197 197 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\dictBuilder" 198 - PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE" 198 + PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE" 199 199 MinimalRebuild="true" 200 200 BasicRuntimeChecks="3" 201 201 RuntimeLibrary="3" ··· 272 272 EnableIntrinsicFunctions="true" 273 273 OmitFramePointers="true" 274 274 AdditionalIncludeDirectories="$(SolutionDir)..\..\lib;$(SolutionDir)..\..\lib\common;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\dictBuilder" 275 - PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE" 275 + PreprocessorDefinitions="ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE" 276 276 RuntimeLibrary="0" 277 277 EnableFunctionLevelLinking="true" 278 278 UsePrecompiledHeader="0"
+4 -4
vendor/git/zstd-c/build/VS2010/libzstd-dll/libzstd-dll.vcxproj
··· 169 169 </PrecompiledHeader> 170 170 <WarningLevel>Level4</WarningLevel> 171 171 <Optimization>Disabled</Optimization> 172 - <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 172 + <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 173 173 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 174 174 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 175 175 <DebugInformationFormat>EditAndContinue</DebugInformationFormat> ··· 188 188 </PrecompiledHeader> 189 189 <WarningLevel>Level4</WarningLevel> 190 190 <Optimization>Disabled</Optimization> 191 - <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 191 + <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 192 192 <TreatWarningAsError>true</TreatWarningAsError> 193 193 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 194 194 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> ··· 208 208 <Optimization>MaxSpeed</Optimization> 209 209 <FunctionLevelLinking>true</FunctionLevelLinking> 210 210 <IntrinsicFunctions>true</IntrinsicFunctions> 211 - <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 211 + <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 212 212 <EnablePREfast>false</EnablePREfast> 213 213 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 214 214 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> ··· 229 229 <Optimization>MaxSpeed</Optimization> 230 230 <FunctionLevelLinking>true</FunctionLevelLinking> 231 231 <IntrinsicFunctions>true</IntrinsicFunctions> 232 - <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 232 + <PreprocessorDefinitions>ZSTD_DLL_EXPORT=1;ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 233 233 <TreatWarningAsError>false</TreatWarningAsError> 234 234 <EnablePREfast>false</EnablePREfast> 235 235 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+4 -4
vendor/git/zstd-c/build/VS2010/libzstd/libzstd.vcxproj
··· 162 162 </PrecompiledHeader> 163 163 <WarningLevel>Level4</WarningLevel> 164 164 <Optimization>Disabled</Optimization> 165 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 165 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 166 166 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 167 167 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 168 168 <DebugInformationFormat>EditAndContinue</DebugInformationFormat> ··· 181 181 </PrecompiledHeader> 182 182 <WarningLevel>Level4</WarningLevel> 183 183 <Optimization>Disabled</Optimization> 184 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 184 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 185 185 <TreatWarningAsError>true</TreatWarningAsError> 186 186 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 187 187 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> ··· 201 201 <Optimization>MaxSpeed</Optimization> 202 202 <FunctionLevelLinking>true</FunctionLevelLinking> 203 203 <IntrinsicFunctions>true</IntrinsicFunctions> 204 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 204 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 205 205 <EnablePREfast>false</EnablePREfast> 206 206 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 207 207 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> ··· 222 222 <Optimization>MaxSpeed</Optimization> 223 223 <FunctionLevelLinking>true</FunctionLevelLinking> 224 224 <IntrinsicFunctions>true</IntrinsicFunctions> 225 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 225 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 226 226 <TreatWarningAsError>false</TreatWarningAsError> 227 227 <EnablePREfast>false</EnablePREfast> 228 228 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+4 -4
vendor/git/zstd-c/build/VS2010/zstd/zstd.vcxproj
··· 187 187 </PrecompiledHeader> 188 188 <WarningLevel>Level4</WarningLevel> 189 189 <Optimization>Disabled</Optimization> 190 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 190 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 191 191 <TreatWarningAsError>true</TreatWarningAsError> 192 192 <EnablePREfast>false</EnablePREfast> 193 193 <EnableEnhancedInstructionSet>$(InstructionSet)</EnableEnhancedInstructionSet> ··· 204 204 </PrecompiledHeader> 205 205 <WarningLevel>Level4</WarningLevel> 206 206 <Optimization>Disabled</Optimization> 207 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 207 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 208 208 <TreatWarningAsError>true</TreatWarningAsError> 209 209 <EnablePREfast>false</EnablePREfast> 210 210 <EnableEnhancedInstructionSet>$(InstructionSet)</EnableEnhancedInstructionSet> ··· 223 223 <Optimization>MaxSpeed</Optimization> 224 224 <FunctionLevelLinking>true</FunctionLevelLinking> 225 225 <IntrinsicFunctions>true</IntrinsicFunctions> 226 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 226 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 227 227 <EnablePREfast>false</EnablePREfast> 228 228 <TreatWarningAsError>false</TreatWarningAsError> 229 229 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> ··· 245 245 <Optimization>MaxSpeed</Optimization> 246 246 <FunctionLevelLinking>true</FunctionLevelLinking> 247 247 <IntrinsicFunctions>true</IntrinsicFunctions> 248 - <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=5;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 248 + <PreprocessorDefinitions>ZSTD_MULTITHREAD=1;ZSTD_LEGACY_SUPPORT=0;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 249 249 <TreatWarningAsError>false</TreatWarningAsError> 250 250 <EnablePREfast>false</EnablePREfast> 251 251 <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+2 -2
vendor/git/zstd-c/build/meson/meson_options.txt
··· 10 10 11 11 # Read guidelines from https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting 12 12 13 - option('legacy_level', type: 'integer', min: 0, max: 7, value: 5, 14 - description: 'Support any legacy format: 7 to 1 for v0.7+ to v0.1+') 13 + option('legacy_level', type: 'integer', min: 0, max: 7, value: 0, 14 + description: 'Support legacy format: 0=disabled, 1-7=support v0.1+ to v0.7+') 15 15 option('debug_level', type: 'integer', min: 0, max: 9, value: 1, 16 16 description: 'Enable run-time debug. See lib/common/debug.h') 17 17 option('backtrace', type: 'feature', value: 'disabled',
+1 -1
vendor/git/zstd-c/lib/BUCK
··· 57 57 srcs=glob(['legacy/*.c']), 58 58 deps=[':common'], 59 59 exported_preprocessor_flags=[ 60 - '-DZSTD_LEGACY_SUPPORT=4', 60 + '-DZSTD_LEGACY_SUPPORT=0', 61 61 ], 62 62 ) 63 63
+1 -1
vendor/git/zstd-c/tests/Makefile
··· 20 20 # zstreamtest32: Same as zstreamtest, but forced to compile in 32-bits mode 21 21 # ########################################################################## 22 22 23 - ZSTD_LEGACY_SUPPORT ?= 5 23 + ZSTD_LEGACY_SUPPORT ?= 0 24 24 export ZSTD_LEGACY_SUPPORT 25 25 26 26 DEBUGLEVEL ?= 2