fix partial-build test

sometimes, the scope difference is solely determined by the list of source files,
not by the flags.
This commit is contained in:
Yann Collet 2020-10-22 19:53:01 -07:00
parent 98787a3018
commit d3f1a9b5bd
2 changed files with 1 additions and 2 deletions

View 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)

View File

@ -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