Browse Source

Fix box2d build when using commit hash as version (#6234)

Iiro Surakka 7 tháng trước cách đây
mục cha
commit
1b3d631fca
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/b/box2d/xmake.lua

+ 1 - 1
packages/b/box2d/xmake.lua

@@ -19,7 +19,7 @@ package("box2d")
 
     if on_check then
         on_check(function (package)
-            if package:version():ge("3.0.0") then
+            if package:gitref() or package:version():ge("3.0.0") then
                 if package:check_sizeof("void*") == "4" then
                     raise("package(box2d >=3.0.0) unsupported 32-bit")
                 end