Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Jul 16, 2024
1 parent 329f9ef commit 766445f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/b/blake3/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ package("blake3")
add_versions("1.3.3", "27d2bc4ee5945ba75434859521042c949463ee7514ff17aaef328e23ef83fec0")
add_versions("1.3.1", "112becf0983b5c83efff07f20b458f2dbcdbd768fd46502e7ddd831b83550109")

if on_check then
on_check("mingw", function (package)
assert(package:is_arch("x86_64"), "package(blake3/mingw): Only suport x86_64 arch")
end)
end

on_install(function (package)
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
import("package.tools.xmake").install(package, configs)
Expand Down

0 comments on commit 766445f

Please sign in to comment.