Use -Dlegacy_level build option to control ZSTD_LEGACY_SUPPORT macro in test

This commit is contained in:
Lzu Tao
2018-12-03 00:36:40 +07:00
parent 437ec5f47f
commit 65507666bb
+2 -1
View File
@@ -110,7 +110,8 @@ invalidDictionaries = executable('invalidDictionaries',
legacy_sources = [join_paths(zstd_rootdir, 'tests/legacy.c')]
legacy = executable('legacy',
legacy_sources,
c_args: '-DZSTD_LEGACY_SUPPORT=4',
# Use -Dlegacy_level build option to control it
#c_args: '-DZSTD_LEGACY_SUPPORT=4',
dependencies: [ libzstd_dep ],
install: false)