Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 18, 2024
1 parent 34aca0b commit c41316b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/l/luajit/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ package("luajit")
add_syslinks("dl")
end

if on_check then
on_check(function (package)
if package:is_arch("arm.*") then
raise("package(luajit/arm64) unsupported arch")
end
end)
end

on_load(function (package)
package:addenv("PATH", "bin")
if package:config("shared") then
Expand Down

0 comments on commit c41316b

Please sign in to comment.