limit windows arch for pcre/pcre2

pull/3/head
ruki 7 years ago
parent aef636f9f0
commit f505eee411
  1. 6
      packages/p/pcre/xmake.lua
  2. 6
      packages/p/pcre2/xmake.lua

@ -9,15 +9,15 @@ package("pcre")
add_versions("8.40", "99e19194fa57d37c38e897d07ecb3366b18e8c395b36c6d555706a7f1df0a5d4")
add_versions("8.41", "0e914a3a5eb3387cad6ffac591c44b24bc384c4e828643643ebac991b57dfcc5")
if is_host("windows") then
if is_host("windows") and is_arch("x86") then
add_deps("cmake")
end
on_build("windows", function (package)
on_build("windows|x86", function (package)
import("package.builder.cmake").build(package)
end)
on_install("windows", function (package)
on_install("windows|x86", function (package)
import("package.builder.cmake").install(package)
end)

@ -10,15 +10,15 @@ package("pcre2")
add_versions("10.30", "3677ce17854fffa68fce6b66442858f48f0de1f537f18439e4bd2771f8b4c7fb")
add_versions("10.31", "b4b40695a5347a770407d492c1749e35ba3970ca03fe83eb2c35d44343a5a444")
if is_host("windows") then
if is_host("windows") and is_arch("x86") then
add_deps("cmake")
end
on_build("windows", function (package)
on_build("windows|x86", function (package)
import("package.builder.cmake").build(package)
end)
on_install("windows", function (package)
on_install("windows|x86", function (package)
import("package.builder.cmake").install(package)
end)

Loading…
Cancel
Save