]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
meson: avoid rebuilding some libzstd files in the test programs
authorEli Schwartz <eschwartz@archlinux.org>
Tue, 10 Aug 2021 03:19:52 +0000 (23:19 -0400)
committerEli Schwartz <eschwartz@archlinux.org>
Fri, 29 Apr 2022 01:56:36 +0000 (21:56 -0400)
The poolTests program already linked to libzstd, and later to
libtestcommon with included libzstd objects. So this was redundant.

Minus 4 compile steps.

build/meson/tests/meson.build

index 14f45982ab12fcd577f7afc08915c8875ce5606d..cf876a395a476718b82238916acbc5b7bb526fe9 100644 (file)
@@ -116,11 +116,7 @@ decodecorpus = executable('decodecorpus',
   dependencies: [ testcommon_dep, libm_dep ],
   install: false)
 
-poolTests_sources = [join_paths(zstd_rootdir, 'tests/poolTests.c'),
-  join_paths(zstd_rootdir, 'lib/common/pool.c'),
-  join_paths(zstd_rootdir, 'lib/common/threading.c'),
-  join_paths(zstd_rootdir, 'lib/common/zstd_common.c'),
-  join_paths(zstd_rootdir, 'lib/common/error_private.c')]
+poolTests_sources = [join_paths(zstd_rootdir, 'tests/poolTests.c')]
 poolTests = executable('poolTests',
   poolTests_sources,
   include_directories: test_includes,