瀏覽代碼

revert zlib (#3083)

Hoildkv 1 年之前
父節點
當前提交
cba2c0ff63
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/z/zlib/xmake.lua

+ 1 - 0
packages/z/zlib/xmake.lua

@@ -22,6 +22,7 @@ package("zlib")
     end
     end
 
 
     on_fetch(function (package, opt)
     on_fetch(function (package, opt)
+        if xmake:version():lt("2.8.7") then return end -- disable system find if the bug is present
         if opt.system then
         if opt.system then
             if not package:is_plat("windows", "mingw") then
             if not package:is_plat("windows", "mingw") then
                 return package:find_package("system::z", {includes = "zlib.h"})
                 return package:find_package("system::z", {includes = "zlib.h"})