Skip to content

Commit bf4a43f

Browse files
committed
Fix zstd-pgo run error
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 <[email protected]>
1 parent 9a5c74b commit bf4a43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ zstd-dll : zstd
232232
.PHONY: zstd-pgo
233233
zstd-pgo : LLVM_PROFDATA?=llvm-profdata
234234
zstd-pgo : PROF_GENERATE_FLAGS=-fprofile-generate $(if $(findstring gcc,$(CC)),-fprofile-dir=.)
235-
zstd-pgo : PROF_USE_FLAGS=-fprofile-use $(if $(findstring gcc,$(CC)),-fprofile-dir=. -Werror=missing-profile -Wno-error=coverage-mismatch)
235+
zstd-pgo : PROF_USE_FLAGS=-fprofile-use $(if $(findstring gcc,$(CC)),-fprofile-dir=. -Wno-error=missing-profile -Wno-error=coverage-mismatch)
236236
zstd-pgo :
237237
$(MAKE) clean HASH_DIR=$(HASH_DIR)
238238
$(MAKE) zstd HASH_DIR=$(HASH_DIR) MOREFLAGS="$(PROF_GENERATE_FLAGS)"

0 commit comments

Comments
 (0)