]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix partial-build test 2370/head
authorYann Collet <cyan@fb.com>
Fri, 23 Oct 2020 02:53:01 +0000 (19:53 -0700)
committerYann Collet <cyan@fb.com>
Fri, 23 Oct 2020 04:36:09 +0000 (21:36 -0700)
sometimes, the scope difference is solely determined by the list of source files,
not by the flags.

lib/Makefile
tests/libzstd_partial_builds.sh

index 1f10c7ab1b16425bd21e970a0102c3f3623bdf97..b8295ff0363e8b2c70a9ecb3de889b8a78c9bccf 100644 (file)
@@ -185,7 +185,7 @@ HASH ?= md5sum
 
 HAVE_HASH := $(shell echo 1 | $(HASH) > /dev/null && echo 1 || echo 0)
 ifeq ($(HAVE_HASH), 1)
-  HASH_VALUE := $(shell echo $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) | $(HASH) | head -c 16)
+  HASH_VALUE := $(shell echo $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(ZSTD_FILES) | $(HASH) | head -c 16)
   HASH_DIR := conf_$(HASH_VALUE)
 else
   $(info warning : could not find hash function to differentiate builds with different flags)
index b1c1e3b1a7e3a8dc87b733a1029bca868fb4d8e8..bee2dbda5264b739937a18f6603bef77e5b20a50 100755 (executable)
@@ -22,7 +22,6 @@ mustBeAbsent() {
 }
 
 # default compilation : all features enabled
-make clean > /dev/null
 $ECHO "testing default library compilation"
 CFLAGS= make -C $DIR/../lib libzstd.a > $INTOVOID
 nm $DIR/../lib/libzstd.a | $GREP "\.o" > tmplog