exclude pcre2 on winxp

pull/3/head
ruki 6 years ago
parent 7ad5d503dc
commit 8237575fe3
  1. 12
      packages/p/pcre2/xmake.lua

@ -14,11 +14,13 @@ package("pcre2")
add_deps("cmake") add_deps("cmake")
end end
on_install("windows", function (package) if is_plat("windows") and winos.version():gt("winxp") then
import("package.tools.cmake").install(package) on_install("windows", function (package)
package:addvar("links", "pcre2-8") import("package.tools.cmake").install(package)
package:addvar("defines", "PCRE2_CODE_UNIT_WIDTH=8") package:addvar("links", "pcre2-8")
end) package:addvar("defines", "PCRE2_CODE_UNIT_WIDTH=8")
end)
end
on_install("macosx", "linux", function (package) on_install("macosx", "linux", function (package)
import("package.tools.autoconf").install(package, {"--enable-jit"}) import("package.tools.autoconf").install(package, {"--enable-jit"})

Loading…
Cancel
Save