]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
6 years ago[Windows] Don't use a .def file 1531/head
Nick Terrell [Wed, 20 Feb 2019 00:14:02 +0000 (16:14 -0800)] 
[Windows] Don't use a .def file

6 years ago[Windows] Move public headers to include/
Nick Terrell [Tue, 19 Feb 2019 23:49:48 +0000 (15:49 -0800)] 
[Windows] Move public headers to include/

6 years agoMerge pull request #1530 from terrelln/param-order
Nick Terrell [Tue, 19 Feb 2019 22:40:10 +0000 (14:40 -0800)] 
Merge pull request #1530 from terrelln/param-order

Clean up parameter code

6 years ago[fuzzer] Add test cases 1530/head
Nick Terrell [Tue, 19 Feb 2019 19:07:52 +0000 (11:07 -0800)] 
[fuzzer] Add test cases

6 years ago[libzstd] Clean up parameter code
Nick Terrell [Sat, 16 Feb 2019 00:15:20 +0000 (16:15 -0800)] 
[libzstd] Clean up parameter code

* Move all ZSTDMT parameter setting code to ZSTD_CCtxParams_*Parameter().
  ZSTDMT now calls these functions, so we can keep all the logic in the
  same place.
* Clean up `ZSTD_CCtx_setParameter()` to only add extra checks where needed.
* Clean up `ZSTDMT_initJobCCtxParams()` by copying all parameters by default,
  and then zeroing the ones that need to be zeroed. We've missed adding several
  parameters here, and it makes more sense to only have to update it if you
  change something in ZSTDMT.
* Add `ZSTDMT_cParam_clampBounds()` to clamp a parameter into its valid
  range. Use this to keep backwards compatibility when setting ZSTDMT parameters,
  which clamp into the valid range.

6 years agoMerge pull request #1525 from terrelln/enable-huf-flag
Nick Terrell [Sat, 16 Feb 2019 01:21:08 +0000 (20:21 -0500)] 
Merge pull request #1525 from terrelln/enable-huf-flag

Fix optimal parser prices with uncompressed literals

6 years ago[zstdcli] Respect --[no-]compress-literals in benchmark mode 1525/head
Nick Terrell [Fri, 15 Feb 2019 23:24:55 +0000 (15:24 -0800)] 
[zstdcli] Respect --[no-]compress-literals in benchmark mode

6 years ago[zstdcli] Add a flag to control literals compression
Nick Terrell [Fri, 15 Feb 2019 22:15:36 +0000 (14:15 -0800)] 
[zstdcli] Add a flag to control literals compression

6 years agoFix a bug in the compress cctx method
Nick Terrell [Fri, 15 Feb 2019 22:14:32 +0000 (14:14 -0800)] 
Fix a bug in the compress cctx method

6 years ago[libzstd] Handle uncompressed literals
Nick Terrell [Fri, 15 Feb 2019 18:29:03 +0000 (10:29 -0800)] 
[libzstd] Handle uncompressed literals

6 years ago[regression] Test level 19 with uncompressed literals
Nick Terrell [Fri, 15 Feb 2019 18:28:44 +0000 (10:28 -0800)] 
[regression] Test level 19 with uncompressed literals

6 years agoMerge pull request #1522 from terrelln/enable-huf-flag
Nick Terrell [Thu, 14 Feb 2019 00:02:32 +0000 (19:02 -0500)] 
Merge pull request #1522 from terrelln/enable-huf-flag

Add ZSTD_c_literalCompressionMode flag

6 years ago[regression] Test ZSTD_c_literalCompressionMode 1522/head
Nick Terrell [Wed, 13 Feb 2019 23:00:32 +0000 (15:00 -0800)] 
[regression] Test ZSTD_c_literalCompressionMode

Test a positive compression level with uncompressed literals,
and a negative compression level with compressed literals.

I double checked the `results.csv` and made sure that the compressed
sizes make sense.

6 years ago[libzstd] Add ZSTD_c_literalCompressionMode flag
Nick Terrell [Wed, 13 Feb 2019 22:59:22 +0000 (14:59 -0800)] 
[libzstd] Add ZSTD_c_literalCompressionMode flag

It controls the literals compression. It is either
`auto`, `huffman`, or `uncompressed`. It defaults to
`auto`, which is the current behavior.

6 years agoMerge pull request #1519 from terrelln/play-bsd
Nick Terrell [Wed, 13 Feb 2019 21:21:14 +0000 (16:21 -0500)] 
Merge pull request #1519 from terrelln/play-bsd

[cirrus] Run playTests.sh

6 years ago[util] Fix UTIL_isLink() for FreeBSD 1519/head
Nick Terrell [Tue, 12 Feb 2019 01:43:43 +0000 (17:43 -0800)] 
[util] Fix UTIL_isLink() for FreeBSD

6 years ago[cirrus] Run playTests.sh
Nick Terrell [Mon, 11 Feb 2019 18:32:30 +0000 (10:32 -0800)] 
[cirrus] Run playTests.sh

* Pass `-Werror` through `MOREFLAGS`
* Install `coreutils`
* Run `playTests.sh`

6 years agoMerge pull request #1521 from bket/lstat
Nick Terrell [Tue, 12 Feb 2019 01:38:49 +0000 (20:38 -0500)] 
Merge pull request #1521 from bket/lstat

Detection of symbolic links on OpenBSD

6 years agoAdd test 1521/head
Björn Ketelaars [Tue, 12 Feb 2019 00:14:58 +0000 (01:14 +0100)] 
Add test

While here enable symlink test for OpenBSD.

6 years agoMake detection of symbolic links more consistent
Björn Ketelaars [Mon, 11 Feb 2019 23:07:32 +0000 (00:07 +0100)] 
Make detection of symbolic links more consistent

While fixing the detection of symbolic links on OpenBSD I noticed
inconsistent behaviour:

$ echo hello > hello
$ ln -s hello world
$ zstd hello world
Warning : world is a symbolic link, ignoring
hello                :316.67%   (     6 =>     19 bytes, hello.zst
$ ls *.zst
hello.zst
$ zstd world
world                :316.67%   (     6 =>     19 bytes, world.zst)
$ ls *.zst
hello.zst world.zst

6 years agoDetect symbolic links on OpenBSD
Björn Ketelaars [Mon, 11 Feb 2019 23:03:11 +0000 (00:03 +0100)] 
Detect symbolic links on OpenBSD

In #1520 it is described that FreeBSD doesn't detect symbolic links. The
same is true for OpenBSD. This diff fixes this issue for OpenBSD. I'm
guessing that something similar works for FreeBSD as well. However, I'm
unable to test this.

6 years agoMerge pull request #1518 from bket/non-portable
Nick Terrell [Mon, 11 Feb 2019 20:43:03 +0000 (15:43 -0500)] 
Merge pull request #1518 from bket/non-portable

'head -c BYTES' is non portable

6 years ago'head -c BYTES' is non-portable. 1518/head
Björn Ketelaars [Mon, 11 Feb 2019 10:49:35 +0000 (11:49 +0100)] 
'head -c BYTES' is non-portable.

Pull request #1499 added a new test, which uses 'head -c'. The '-c'
option is non-portable (not in POSIX). Instead use 'dd'. Similar issue
has been resolved in the past (#1321).

6 years agoMerge pull request #1516 from terrelln/dict-doc
Nick Terrell [Sat, 2 Feb 2019 00:04:05 +0000 (19:04 -0500)] 
Merge pull request #1516 from terrelln/dict-doc

[zdict] Improve documentation

6 years ago[zdict] Improve documentation 1516/head
Nick Terrell [Fri, 1 Feb 2019 23:19:32 +0000 (15:19 -0800)] 
[zdict] Improve documentation

6 years agoMerge pull request #1515 from thatsafunnyname/patch-1
Nick Terrell [Fri, 1 Feb 2019 18:41:27 +0000 (13:41 -0500)] 
Merge pull request #1515 from thatsafunnyname/patch-1

-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2 1515/head
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:38:49 +0000 (09:38 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:31:46 +0000 (09:31 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:31:02 +0000 (09:31 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:30:31 +0000 (09:30 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:29:40 +0000 (09:29 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:29:08 +0000 (09:29 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:28:41 +0000 (09:28 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:27:22 +0000 (09:27 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years agoMerge pull request #1511 from lwhsu/cirrus-ci
Nick Terrell [Wed, 30 Jan 2019 21:53:13 +0000 (16:53 -0500)] 
Merge pull request #1511 from lwhsu/cirrus-ci

Change Cirrus CI's badge to dev branch

6 years agoChange Cirrus CI's badge to dev branch 1511/head
Li-Wen Hsu [Wed, 30 Jan 2019 21:37:04 +0000 (05:37 +0800)] 
Change Cirrus CI's badge to dev branch

6 years agoMerge pull request #1501 from lwhsu/cirrus-ci
Nick Terrell [Wed, 30 Jan 2019 19:15:02 +0000 (14:15 -0500)] 
Merge pull request #1501 from lwhsu/cirrus-ci

Add Cirrus-CI config and build status badge for testing on FreeBSD

6 years agoMerge pull request #1509 from felixhandte/verbose-errors
Yann Collet [Tue, 29 Jan 2019 19:32:24 +0000 (11:32 -0800)] 
Merge pull request #1509 from felixhandte/verbose-errors

Add Debug Information to Error Checks

6 years agoRename FORWARD_ERROR -> FORWARD_IF_ERROR 1509/head
W. Felix Handte [Tue, 29 Jan 2019 17:56:07 +0000 (12:56 -0500)] 
Rename FORWARD_ERROR -> FORWARD_IF_ERROR

6 years agoAdd Comment
W. Felix Handte [Mon, 28 Jan 2019 22:35:31 +0000 (17:35 -0500)] 
Add Comment

6 years agoRemove CHECK_E Macro
W. Felix Handte [Mon, 28 Jan 2019 22:28:14 +0000 (17:28 -0500)] 
Remove CHECK_E Macro

6 years agoReplace Uses of CHECK_E with RETURN_ERROR_IF(*_isError(...
W. Felix Handte [Mon, 28 Jan 2019 22:27:29 +0000 (17:27 -0500)] 
Replace Uses of CHECK_E with RETURN_ERROR_IF(*_isError(...

6 years agoRemove CHECK_F Macro
W. Felix Handte [Mon, 28 Jan 2019 22:16:32 +0000 (17:16 -0500)] 
Remove CHECK_F Macro

6 years agoReplace CHECK_F Uses in zstdmt_compress.c and zstd_ddict.c
W. Felix Handte [Mon, 28 Jan 2019 22:15:57 +0000 (17:15 -0500)] 
Replace CHECK_F Uses in zstdmt_compress.c and zstd_ddict.c

6 years agoMerge pull request #1508 from facebook/fileio_lz4
Yann Collet [Mon, 28 Jan 2019 22:12:27 +0000 (14:12 -0800)] 
Merge pull request #1508 from facebook/fileio_lz4

fixed fileio.c compilation with LZ4 enabled

6 years agoAlso Convert zstd_compress.c
W. Felix Handte [Mon, 28 Jan 2019 22:05:18 +0000 (17:05 -0500)] 
Also Convert zstd_compress.c

6 years agoAdd grep-able String to Error Macros
W. Felix Handte [Mon, 28 Jan 2019 17:50:36 +0000 (12:50 -0500)] 
Add grep-able String to Error Macros

6 years agoSwitch CHECK_F Calls to FORWARD_ERROR
W. Felix Handte [Mon, 28 Jan 2019 17:42:00 +0000 (12:42 -0500)] 
Switch CHECK_F Calls to FORWARD_ERROR

6 years agoSwitch Unconditional RETURN_ERROR_IF Calls to RETURN_ERROR
W. Felix Handte [Mon, 28 Jan 2019 17:35:56 +0000 (12:35 -0500)] 
Switch Unconditional RETURN_ERROR_IF Calls to RETURN_ERROR

6 years agoAdd RETURN_ERROR and FORWARD_ERROR Macros
W. Felix Handte [Mon, 28 Jan 2019 17:34:08 +0000 (12:34 -0500)] 
Add RETURN_ERROR and FORWARD_ERROR Macros

6 years agoConvert Checks in zstd_decompress.c to RETURN_ERROR_IF
W. Felix Handte [Mon, 28 Jan 2019 17:22:52 +0000 (12:22 -0500)] 
Convert Checks in zstd_decompress.c to RETURN_ERROR_IF

6 years agoConvert Checks in zstd_decompress_block.c to RETURN_ERROR_IF
W. Felix Handte [Thu, 6 Dec 2018 01:17:11 +0000 (17:17 -0800)] 
Convert Checks in zstd_decompress_block.c to RETURN_ERROR_IF

6 years agoAdd RETURN_ERROR_IF Macro That Logs Debug Information When Check Fails
W. Felix Handte [Thu, 6 Dec 2018 00:23:18 +0000 (16:23 -0800)] 
Add RETURN_ERROR_IF Macro That Logs Debug Information When Check Fails

6 years agofixed fileio.c compilation with LZ4 enabled 1508/head
Yann Collet [Fri, 25 Jan 2019 22:42:44 +0000 (14:42 -0800)] 
fixed fileio.c compilation with LZ4 enabled

was broken by #1505.

I'm surprised it passed CI tests.
LZ4 tests are part of the "Extended" tests on Travis CI,
which are run on "master" and in "cron" jobs.

Since latest cron job did not failed,
especially this one : https://travis-ci.org/facebook/zstd/jobs/484365040
it suggests cron jobs are no longer using `dev` branch.

To be investigated

6 years agoMerge pull request #1505 from kostmo/remove-global-params
Yann Collet [Thu, 24 Jan 2019 01:11:08 +0000 (17:11 -0800)] 
Merge pull request #1505 from kostmo/remove-global-params

Remove global parameters, pass into public functions instead

6 years agoRemove global parameters, pass into public functions instead 1505/head
Karl Ostmo [Wed, 23 Jan 2019 01:31:13 +0000 (17:31 -0800)] 
Remove global parameters, pass into public functions instead

6 years agoMerge pull request #1504 from facebook/conversionWarnings
Yann Collet [Tue, 22 Jan 2019 18:04:59 +0000 (10:04 -0800)] 
Merge pull request #1504 from facebook/conversionWarnings

Conversion warnings

6 years agoRevert "added clang test in travis" 1504/head
Yann Collet [Sun, 20 Jan 2019 19:13:01 +0000 (11:13 -0800)] 
Revert "added clang test in travis"

This reverts commit 4909a341db27f123d920041dcbd5e4a51aa0b38f.

6 years agoadded clang test in travis
Yann Collet [Sun, 20 Jan 2019 07:44:09 +0000 (23:44 -0800)] 
added clang test in travis

6 years agoupdated clang tests
Yann Collet [Sun, 20 Jan 2019 07:40:41 +0000 (23:40 -0800)] 
updated clang tests

target clangbuild

6 years agofixed minor conversion warnings in examples/
Yann Collet [Sun, 20 Jan 2019 07:38:20 +0000 (23:38 -0800)] 
fixed minor conversion warnings in examples/

6 years agoAdd Cirrus-CI build status badge 1501/head
Li-Wen Hsu [Wed, 16 Jan 2019 19:32:46 +0000 (03:32 +0800)] 
Add Cirrus-CI build status badge

6 years agoAdd Cirrus-CI config for FreeBSD builds
Li-Wen Hsu [Thu, 10 Jan 2019 20:00:27 +0000 (04:00 +0800)] 
Add Cirrus-CI config for FreeBSD builds

6 years agoMerge pull request #1499 from kostmo/detect-truncation
Yann Collet [Wed, 16 Jan 2019 16:56:22 +0000 (08:56 -0800)] 
Merge pull request #1499 from kostmo/detect-truncation

fix --list on truncated files

6 years agoMerge pull request #1500 from lwhsu/unistd
Yann Collet [Wed, 16 Jan 2019 14:21:58 +0000 (06:21 -0800)] 
Merge pull request #1500 from lwhsu/unistd

Include unistd.h on unix platforms for explicit function declaration

6 years agofix --list on truncated files 1499/head
Karl Ostmo [Tue, 15 Jan 2019 01:58:46 +0000 (17:58 -0800)] 
fix --list on truncated files

fseek() doesn't indicate when it moves past the end of a file.
Consequently, if a file is truncated within its last block, the error would't be detected.

This PR adds a test scenario that induces this situation using a small compressed file of only one block in size.
This test is added to tests/playTests.sh

Check is implemented by ensuring that the filehandle position is equal to the filesize upon exit.

6 years agoInclude unistd.h on unix platforms for explicit function declaration 1500/head
Li-Wen Hsu [Tue, 15 Jan 2019 20:55:43 +0000 (04:55 +0800)] 
Include unistd.h on unix platforms for explicit function declaration

6 years agoMerge pull request #1496 from hjmjohnson/cmake-improve-conditional-policies
Yann Collet [Thu, 10 Jan 2019 17:35:21 +0000 (09:35 -0800)] 
Merge pull request #1496 from hjmjohnson/cmake-improve-conditional-policies

ENH: Simplify conditional logic

6 years agoENH: Simplify conditional logic 1496/head
Hans Johnson [Tue, 8 Jan 2019 14:43:04 +0000 (08:43 -0600)] 
ENH: Simplify conditional logic

Based on excellent comment in #1489, the logic
to set cmake policies was simplified.  This will
provide an easier mechanism for maintaining the
conditional logic across many versions of cmake.

6 years agoMerge pull request #1494 from lzutao/fix-leak
Yann Collet [Mon, 7 Jan 2019 01:17:02 +0000 (17:17 -0800)] 
Merge pull request #1494 from lzutao/fix-leak

Fix potential leak of 'outBuff' (reported by scan-build)

6 years agoMerge pull request #1493 from lzutao/fix-#1428
Yann Collet [Sun, 6 Jan 2019 20:37:07 +0000 (12:37 -0800)] 
Merge pull request #1493 from lzutao/fix-#1428

Fix #1428 - zstdgrep returned 1 on both matched and unmatched file

6 years agotests/legagy.c: More fixes 1494/head
Lzu Tao [Sun, 6 Jan 2019 16:42:24 +0000 (23:42 +0700)] 
tests/legagy.c: More fixes

6 years agoFix potential leak of 'outBuff' (reported by scan-build)
Lzu Tao [Sun, 6 Jan 2019 16:28:38 +0000 (23:28 +0700)] 
Fix potential leak of 'outBuff' (reported by scan-build)

6 years agoFix #1428 - zstdgrep returned 1 on match and unmatch 1493/head
Lzu Tao [Sun, 6 Jan 2019 14:22:49 +0000 (21:22 +0700)] 
Fix #1428 - zstdgrep returned 1 on match and unmatch

- Use ZCAT for testing zstdgrep in case of non-install yet
- tests: Add file test for zstdgrep

6 years agoMerge pull request #1491 from cemeyer/freebsd_num_cores
Yann Collet [Sat, 5 Jan 2019 19:48:01 +0000 (11:48 -0800)] 
Merge pull request #1491 from cemeyer/freebsd_num_cores

Fix #1425 - Use physical core count API on FreeBSD

6 years agoFix #1425 - Use physical core count API on FreeBSD 1491/head
Conrad Meyer [Fri, 4 Jan 2019 19:57:12 +0000 (11:57 -0800)] 
Fix #1425 - Use physical core count API on FreeBSD

Similar to Apple, use the native physical core count sysctl, when available.

This is a little repetitive (it's basically the __APPLE__ method plus the
otherBSD method concatenated together) but seemed clearer than any way that
would totally eliminate repetition.

The __FreeBSD_version check only tests the version of the FreeBSD kernel
that zstd is compiled on; importantly, it may be run on a different version.
So the compile-time check is a little naive and needs to be able to fallback
to work on older versions of FreeBSD.  For a similar reason, it may make
sense to simply eliminate the __FreeBSD_version check entirely.  The
tradeoff is that a spurious sysctlbyname would be issued when -T0 is used on
older kernels.

6 years agoMerge pull request #1490 from erikwebb/dev
Yann Collet [Thu, 3 Jan 2019 21:22:07 +0000 (13:22 -0800)] 
Merge pull request #1490 from erikwebb/dev

Check CMake minor version support for VERSION_LESS_EQUAL

6 years agoCheck CMake minor version support for VERSION_LESS_EQUAL 1490/head
Erik Webb [Thu, 3 Jan 2019 20:26:20 +0000 (15:26 -0500)] 
Check CMake minor version support for VERSION_LESS_EQUAL

VERSION_LESS_EQUAL is only available to CMake 3.7+. This adds additional
logic to check that CMAKE_MINOR_VERSION is at least 7.

Fixes #1489

6 years agoimproved comments for adjustCParams() and getCParams()
Yann Collet [Wed, 2 Jan 2019 20:14:36 +0000 (12:14 -0800)] 
improved comments for adjustCParams() and getCParams()

6 years agoMerge pull request #1485 from ldv-alt/dev
Yann Collet [Wed, 2 Jan 2019 18:46:41 +0000 (10:46 -0800)] 
Merge pull request #1485 from ldv-alt/dev

contrib/pzstd/Makefile: fix build of tests

6 years agoMerge pull request #1475 from hjmjohnson/cmake-version-setting
Yann Collet [Mon, 31 Dec 2018 05:11:39 +0000 (21:11 -0800)] 
Merge pull request #1475 from hjmjohnson/cmake-version-setting

Cmake version setting

6 years agoProvide forward compatible cmake paradigms 1475/head
Hans Johnson [Mon, 24 Dec 2018 14:18:26 +0000 (08:18 -0600)] 
Provide forward compatible cmake paradigms

Automatically extract version information
from the zstd.h file.  Use naming of variables
consisent with modern cmake and https://semver.org/
(Semantic Versioning 2.0.0, MAJOR, MINOR, PATCH)

Modern versions of cmake provide consistent
paradigms for configuring project external
interface values.

This set of changes provide a back port of
some of cmake 3+ paradigms back to cmake 2.8.9.
Set and allow use of the current cmake policies
for newer versions of cmake when available to
allow for modern compiler features to be
utilized when available.

NOTE: The intent is that future modifications to
cmake will enable (conditional on cmake version support)
the ability to support modern linkage, and target
export mechanisms.  Those future changes will
make incorporating zstd into other packages
much easier.

This patch also allows the more rigourous error
checking of commmon cmake errors to be preformed
by cmake (i.e. more stringent syntax checking and
create errors for common hard to find misuses of
cmake variables).

This patch also provides support for modern
compiler support options by cmake (like
enabling interprocedural optimization
if link time optimizations are known to be supported
by the compiler envirionment.  IPO can be supported
by setting the CMAKE_INTERPROCEDURAL_OPTIMIZATION variable
for newer versions of cmake.

6 years agocontrib/pzstd/Makefile: fix build of tests 1485/head
Dmitry V. Levin [Thu, 27 Dec 2018 12:42:44 +0000 (12:42 +0000)] 
contrib/pzstd/Makefile: fix build of tests

Apparently, Options.o cannot be linked in without $(PROGDIR)/util.o

6 years agoMerge pull request #1474 from hjmjohnson/cmake-set-default-build-type
Yann Collet [Fri, 28 Dec 2018 19:02:22 +0000 (11:02 -0800)] 
Merge pull request #1474 from hjmjohnson/cmake-set-default-build-type

Cmake set default build type

6 years agoMerge pull request #1478 from hjmjohnson/remove-duplicates-validation
Yann Collet [Fri, 28 Dec 2018 18:50:03 +0000 (10:50 -0800)] 
Merge pull request #1478 from hjmjohnson/remove-duplicates-validation

BUG: list sub-command REMOVE_DUPLICATES requires list to be present

6 years agoMerge pull request #1482 from lzutao/travisTest
Yann Collet [Fri, 28 Dec 2018 18:49:01 +0000 (10:49 -0800)] 
Merge pull request #1482 from lzutao/travisTest

travis: Use ninja from official github release

6 years agoMerge pull request #1483 from lzutao/meson-readme
Yann Collet [Fri, 28 Dec 2018 17:46:13 +0000 (09:46 -0800)] 
Merge pull request #1483 from lzutao/meson-readme

meson: Update build guide

6 years agoMerge pull request #1484 from lzutao/meson-pkgconf
Yann Collet [Fri, 28 Dec 2018 06:39:07 +0000 (22:39 -0800)] 
Merge pull request #1484 from lzutao/meson-pkgconf

meson: Correct generating pkgconf after Meson v0.49.0

6 years agotravis: Remove deprecated sudo field 1482/head
Lzu Tao [Fri, 28 Dec 2018 04:55:26 +0000 (11:55 +0700)] 
travis: Remove deprecated sudo field

6 years agomeson: Correct generating pkgconf after Meson v0.49.0 1484/head
Lzu Tao [Fri, 28 Dec 2018 04:20:33 +0000 (11:20 +0700)] 
meson: Correct generating pkgconf after Meson v0.49.0

6 years agomeson: Update build guide [skip ci] 1483/head
Lzu Tao [Fri, 28 Dec 2018 04:17:11 +0000 (11:17 +0700)] 
meson: Update build guide [skip ci]

6 years agotravis: Use ninja from github
Lzu Tao [Fri, 28 Dec 2018 03:07:05 +0000 (10:07 +0700)] 
travis: Use ninja from github

6 years agoMerge pull request #1479 from facebook/visualTest 1480/head v1.3.8
Yann Collet [Thu, 27 Dec 2018 12:42:44 +0000 (04:42 -0800)] 
Merge pull request #1479 from facebook/visualTest

Fix remaining Windows errors

6 years agofixed detection of input==output on Visual 1479/head
Yann Collet [Wed, 26 Dec 2018 23:51:34 +0000 (15:51 -0800)] 
fixed detection of input==output on Visual

due to bad support of inode identifiers.
On Visual, option is limited to same file name,
which is imperfect, but way better than disabling the feature entirely.

It's enough to pass associated tests.

6 years agofixed playTests.sh for minGW
Yann Collet [Wed, 26 Dec 2018 23:19:09 +0000 (15:19 -0800)] 
fixed playTests.sh for minGW

On Windows, the equivalent of `/dev/null` is `NUL`.
When tests are run under msys2/minGW,
the environment identifies itself as Windows,
hence the script uses `NUL` instead of `/dev/null`
but the environment will consider `NUL` to be a regular file name.
Consequently, `NUL` will be overwritten during tests,
triggering an error.

This patch uses flag `-f` to force such overwrite
passing the test.

6 years agoMerge pull request #1477 from hjmjohnson/update-ZSTD_LEGACY_SUPPORT
Yann Collet [Wed, 26 Dec 2018 19:40:28 +0000 (11:40 -0800)] 
Merge pull request #1477 from hjmjohnson/update-ZSTD_LEGACY_SUPPORT

ENH: Update to -DZSTD_LEGACY_SUPPORT=5

6 years agoBUG: list sub-command REMOVE_DUPLICATES requires list to be present 1478/head
Hans Johnson [Mon, 24 Dec 2018 14:37:07 +0000 (08:37 -0600)] 
BUG: list sub-command REMOVE_DUPLICATES requires list to be present

When compiling without c++ enabled, some variables are not present.
This is a check enforced in recent Cmake versions.

CMake Error at CMakeModules/AddZstdCompilationFlags.cmake:54 (list):
  list sub-command REMOVE_DUPLICATES requires list to be present.
Call Stack (most recent call first):
  CMakeLists.txt:53 (ADD_ZSTD_COMPILATION_FLAGS)

6 years agoImprove setting the default build type 1474/head
Hans Johnson [Mon, 24 Dec 2018 14:48:04 +0000 (08:48 -0600)] 
Improve setting the default build type

The CMAKE_BUILD_TYPE variable is a CACHE variable
and should be set in a way that persists and is
documented in the CACHE.  Also set the default
values for the gui to ease selection of types.

These changes provide better support for GUI
configurators that support cmake.

6 years agoENH: Update to -DZSTD_LEGACY_SUPPORT=5 1477/head
Hans Johnson [Wed, 26 Dec 2018 19:17:31 +0000 (13:17 -0600)] 
ENH: Update to -DZSTD_LEGACY_SUPPORT=5

6 years agofixed VS2008 project
Yann Collet [Tue, 25 Dec 2018 23:04:49 +0000 (15:04 -0800)] 
fixed VS2008 project

bench.c => benchfn.c + benchzstd.c
wrong util.c from prior patch

and warnings :
C4127