fix playTests.sh when EXE_PREFIX not null
This commit is contained in:
parent
18191c85c9
commit
f21977c5e6
@ -156,7 +156,7 @@ endif
|
|||||||
|
|
||||||
# zlib detection
|
# zlib detection
|
||||||
NO_ZLIB_MSG := ==> no zlib, building zstd without .gz support
|
NO_ZLIB_MSG := ==> no zlib, building zstd without .gz support
|
||||||
HAVE_ZLIB := $(shell printf '$(NUM_SYMBOL)include <zlib.h>\nint main(void) { return 0; }' > have_zlib.c && $(CC) $(FLAGS) -o have_zlib$(EXT) have_zlib.c -lz 2> $(VOID) && rm have_zlib$(EXT) && echo 1 || echo 0; rm have_zlib.c)
|
HAVE_ZLIB ?= $(shell printf '$(NUM_SYMBOL)include <zlib.h>\nint main(void) { return 0; }' > have_zlib.c && $(CC) $(FLAGS) -o have_zlib$(EXT) have_zlib.c -lz 2> $(VOID) && rm have_zlib$(EXT) && echo 1 || echo 0; rm have_zlib.c)
|
||||||
ifeq ($(HAVE_ZLIB), 1)
|
ifeq ($(HAVE_ZLIB), 1)
|
||||||
ZLIB_MSG := ==> building zstd with .gz compression support
|
ZLIB_MSG := ==> building zstd with .gz compression support
|
||||||
ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
|
ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
|
||||||
@ -167,7 +167,7 @@ endif
|
|||||||
|
|
||||||
# lzma detection
|
# lzma detection
|
||||||
NO_LZMA_MSG := ==> no liblzma, building zstd without .xz/.lzma support
|
NO_LZMA_MSG := ==> no liblzma, building zstd without .xz/.lzma support
|
||||||
HAVE_LZMA := $(shell printf '$(NUM_SYMBOL)include <lzma.h>\nint main(void) { return 0; }' > have_lzma.c && $(CC) $(FLAGS) -o have_lzma$(EXT) have_lzma.c -llzma 2> $(VOID) && rm have_lzma$(EXT) && echo 1 || echo 0; rm have_lzma.c)
|
HAVE_LZMA ?= $(shell printf '$(NUM_SYMBOL)include <lzma.h>\nint main(void) { return 0; }' > have_lzma.c && $(CC) $(FLAGS) -o have_lzma$(EXT) have_lzma.c -llzma 2> $(VOID) && rm have_lzma$(EXT) && echo 1 || echo 0; rm have_lzma.c)
|
||||||
ifeq ($(HAVE_LZMA), 1)
|
ifeq ($(HAVE_LZMA), 1)
|
||||||
LZMA_MSG := ==> building zstd with .xz/.lzma compression support
|
LZMA_MSG := ==> building zstd with .xz/.lzma compression support
|
||||||
LZMACPP = -DZSTD_LZMACOMPRESS -DZSTD_LZMADECOMPRESS
|
LZMACPP = -DZSTD_LZMACOMPRESS -DZSTD_LZMADECOMPRESS
|
||||||
@ -178,7 +178,7 @@ endif
|
|||||||
|
|
||||||
# lz4 detection
|
# lz4 detection
|
||||||
NO_LZ4_MSG := ==> no liblz4, building zstd without .lz4 support
|
NO_LZ4_MSG := ==> no liblz4, building zstd without .lz4 support
|
||||||
HAVE_LZ4 := $(shell printf '$(NUM_SYMBOL)include <lz4frame.h>\n$(NUM_SYMBOL)include <lz4.h>\nint main(void) { return 0; }' > have_lz4.c && $(CC) $(FLAGS) -o have_lz4$(EXT) have_lz4.c -llz4 2> $(VOID) && rm have_lz4$(EXT) && echo 1 || echo 0; rm have_lz4.c)
|
HAVE_LZ4 ?= $(shell printf '$(NUM_SYMBOL)include <lz4frame.h>\n$(NUM_SYMBOL)include <lz4.h>\nint main(void) { return 0; }' > have_lz4.c && $(CC) $(FLAGS) -o have_lz4$(EXT) have_lz4.c -llz4 2> $(VOID) && rm have_lz4$(EXT) && echo 1 || echo 0; rm have_lz4.c)
|
||||||
ifeq ($(HAVE_LZ4), 1)
|
ifeq ($(HAVE_LZ4), 1)
|
||||||
LZ4_MSG := ==> building zstd with .lz4 compression support
|
LZ4_MSG := ==> building zstd with .lz4 compression support
|
||||||
LZ4CPP = -DZSTD_LZ4COMPRESS -DZSTD_LZ4DECOMPRESS
|
LZ4CPP = -DZSTD_LZ4COMPRESS -DZSTD_LZ4DECOMPRESS
|
||||||
|
@ -166,7 +166,8 @@ if [ -z "${DATAGEN_BIN}" ]; then
|
|||||||
DATAGEN_BIN="$TESTDIR/datagen"
|
DATAGEN_BIN="$TESTDIR/datagen"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ZSTD_BIN="$EXE_PREFIX$ZSTD_BIN"
|
# Why was this line here ? Generates a strange ZSTD_BIN when EXE_PREFIX is non empty
|
||||||
|
# ZSTD_BIN="$EXE_PREFIX$ZSTD_BIN"
|
||||||
|
|
||||||
# assertions
|
# assertions
|
||||||
[ -n "$ZSTD_BIN" ] || die "zstd not found at $ZSTD_BIN! \n Please define ZSTD_BIN pointing to the zstd binary. You might also consider rebuilding zstd follwing the instructions in README.md"
|
[ -n "$ZSTD_BIN" ] || die "zstd not found at $ZSTD_BIN! \n Please define ZSTD_BIN pointing to the zstd binary. You might also consider rebuilding zstd follwing the instructions in README.md"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user