Explorar o código

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

Iiro Surakka hai 7 meses
pai
achega
1b3d631fca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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