Skip to content

Commit

Permalink
bison: fix msys
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Nov 6, 2024
1 parent f8a6252 commit 16f012a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/b/bison/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ package("bison")
add_versions("3.7.6", "69dc0bb46ea8fc307d4ca1e0b61c8c355eb207d0b0c69f4f8462328e74d7b9ea")
add_versions("3.8.2", "06c9e13bdf7eb24d4ceb6b59205a4f67c2c7e7213119644430fe82fbd14a0abb")

if is_subhost("msys") then
add_deps("pacman::bison")
end

on_load("macosx", "linux", "bsd", "windows", function (package)
on_load("macosx", "linux", "bsd", "windows", "@msys", function (package)
if package:is_plat("windows") then
package:add("deps", "winflexbison", {private = true})
elseif package:is_plat("linux", "bsd") then
Expand All @@ -40,6 +36,7 @@ package("bison")
end)

on_install("@msys", function (package)
os.vrun("pacman -Sy --noconfirm --needed --disable-download-timeout bison")
end)

on_install("windows", function (package)
Expand Down

0 comments on commit 16f012a

Please sign in to comment.