From: Codecat Date: Sat, 14 Jul 2018 10:27:42 +0000 (+0200) Subject: Update zstd.lua X-Git-Tag: v0.0.29~67^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a61bdb9c08c9b4edc1891c78514510d67906789;p=thirdparty%2Fzstd.git Update zstd.lua --- diff --git a/contrib/premake/zstd.lua b/contrib/premake/zstd.lua index 4759dff76..0f7fc558b 100644 --- a/contrib/premake/zstd.lua +++ b/contrib/premake/zstd.lua @@ -57,11 +57,12 @@ function project_zstd(dir, compression, decompression, deprecated, dictbuilder, } end - if legacy < 8 then - files { - dir .. 'legacy/zstd_v0' .. (legacy - 7) .. '.*' - } - else + if legacy ~= 0 then + if legacy >= 8 then + files { + dir .. 'legacy/zstd_v0' .. (legacy - 7) .. '.*' + } + end includedirs { dir .. 'legacy' }