]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Update zstd.lua
authorCodecat <spansjh@gmail.com>
Sat, 14 Jul 2018 10:27:42 +0000 (12:27 +0200)
committerGitHub <noreply@github.com>
Sat, 14 Jul 2018 10:27:42 +0000 (12:27 +0200)
contrib/premake/zstd.lua

index 4759dff764d89548e9255644cb0182dd76284d9e..0f7fc558b5879da7efccbab28fe94c8c3213201c 100644 (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'
                        }