mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Add ZSTD_LIB_EXCLUDE_COMPRESSORS_DFAST_AND_UP Build Variable
This commit is contained in:
@ -47,6 +47,8 @@ endif
|
|||||||
# Assembly support
|
# Assembly support
|
||||||
ZSTD_NO_ASM ?= 0
|
ZSTD_NO_ASM ?= 0
|
||||||
|
|
||||||
|
ZSTD_LIB_EXCLUDE_COMPRESSORS_DFAST_AND_UP ?= 0
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# libzstd helpers
|
# libzstd helpers
|
||||||
##################################################################
|
##################################################################
|
||||||
@ -178,6 +180,10 @@ ifneq ($(ZSTD_LEGACY_MULTITHREADED_API), 0)
|
|||||||
CFLAGS += -DZSTD_LEGACY_MULTITHREADED_API
|
CFLAGS += -DZSTD_LEGACY_MULTITHREADED_API
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(ZSTD_LIB_EXCLUDE_COMPRESSORS_DFAST_AND_UP), 0)
|
||||||
|
CFLAGS += -DZSTD_EXCLUDE_DFAST_BLOCK_COMPRESSOR -DZSTD_EXCLUDE_GREEDY_BLOCK_COMPRESSOR -DZSTD_EXCLUDE_LAZY2_BLOCK_COMPRESSOR -DZSTD_EXCLUDE_BTLAZY2_BLOCK_COMPRESSOR -DZSTD_EXCLUDE_BTOPT_BLOCK_COMPRESSOR -DZSTD_EXCLUDE_BTULTRA_BLOCK_COMPRESSOR
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(ZSTD_LEGACY_SUPPORT), 0)
|
ifneq ($(ZSTD_LEGACY_SUPPORT), 0)
|
||||||
ifeq ($(shell test $(ZSTD_LEGACY_SUPPORT) -lt 8; echo $$?), 0)
|
ifeq ($(shell test $(ZSTD_LEGACY_SUPPORT) -lt 8; echo $$?), 0)
|
||||||
ZSTD_LEGACY_FILES += $(shell ls $(LIBZSTD)/legacy/*.c | $(GREP) 'v0[$(ZSTD_LEGACY_SUPPORT)-7]')
|
ZSTD_LEGACY_FILES += $(shell ls $(LIBZSTD)/legacy/*.c | $(GREP) 'v0[$(ZSTD_LEGACY_SUPPORT)-7]')
|
||||||
|
@ -1708,8 +1708,14 @@ zstd --patch-from=tmp_dict -r tmp_dir && die
|
|||||||
rm -rf tmp*
|
rm -rf tmp*
|
||||||
|
|
||||||
println "\n===> patch-from long mode trigger larger file test"
|
println "\n===> patch-from long mode trigger larger file test"
|
||||||
datagen -g5000000 > tmp_dict
|
if [ "$ZSTD_LIB_EXCLUDE_COMPRESSORS_DFAST_AND_UP" -eq "1" ]; then
|
||||||
datagen -g5000000 > tmp_patch
|
# if binary tree strategies are excluded, the threshold is different
|
||||||
|
datagen -g10000000 > tmp_dict
|
||||||
|
datagen -g10000000 > tmp_patch
|
||||||
|
else
|
||||||
|
datagen -g5000000 > tmp_dict
|
||||||
|
datagen -g5000000 > tmp_patch
|
||||||
|
fi
|
||||||
zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered"
|
zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered"
|
||||||
rm -rf tmp*
|
rm -rf tmp*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user