]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix zstd-pgo run error 4119/head
authorXionghu Luo <xionghuluo@tencent.com>
Thu, 8 Aug 2024 07:13:27 +0000 (15:13 +0800)
committerXionghu Luo <xionghuluo@tencent.com>
Thu, 8 Aug 2024 07:13:27 +0000 (15:13 +0800)
The -Werror=missing-profile caused thread/zlib/lzma/lz4 detection failure
when build with profile-use, thus caused ZSTD_MULTITHREAD etc. is not
defined for profile-use, then there will be many profile mismatch information
in output and the final binary reports run error sometimes as below:

Error : ZSTD_CCtx_setParameter(ctx, ZSTD_c_nbWorkers, adv->nbWorkers) failed : Unsupported parameter

Signed-off-by: Xionghu Luo <xionghuluo@tencent.com>
programs/Makefile

index e1a30fc2b284dffcc4417be390916b2f8c98e6a4..4d32e0fa8b2c7fa0b70a3a232545673b952a3ab1 100644 (file)
@@ -232,7 +232,7 @@ zstd-dll : zstd
 .PHONY: zstd-pgo
 zstd-pgo : LLVM_PROFDATA?=llvm-profdata
 zstd-pgo : PROF_GENERATE_FLAGS=-fprofile-generate $(if $(findstring gcc,$(CC)),-fprofile-dir=.)
-zstd-pgo : PROF_USE_FLAGS=-fprofile-use $(if $(findstring gcc,$(CC)),-fprofile-dir=. -Werror=missing-profile -Wno-error=coverage-mismatch)
+zstd-pgo : PROF_USE_FLAGS=-fprofile-use $(if $(findstring gcc,$(CC)),-fprofile-dir=. -Wno-error=missing-profile -Wno-error=coverage-mismatch)
 zstd-pgo :
        $(MAKE) clean HASH_DIR=$(HASH_DIR)
        $(MAKE) zstd HASH_DIR=$(HASH_DIR) MOREFLAGS="$(PROF_GENERATE_FLAGS)"