Update zstd.lua

dev
Codecat 2018-07-14 12:27:42 +02:00 committed by GitHub
parent 23d77c531e
commit 1a61bdb9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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'
}