浏览代码

fix hookmanager assert fail (#6119)

* fix assert fail

* Exclude the arm64 arch
muzili 8 月之前
父节点
当前提交
8ca17794d4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/h/hookmanager/xmake.lua

+ 2 - 1
packages/h/hookmanager/xmake.lua

@@ -17,7 +17,8 @@ package("hookmanager")
 
     if on_check then
         on_check(function (package)
-            assert(package:is_arch("x86") and package:config("lighthook"),"package(hookmanager) LightHook does not support the X86 architecture.")
+            assert(not package:is_arch("arm64"),"package(hookmanager) The arm64 architecture is not currently supported.")
+            assert(not (package:is_arch("x86") and package:config("lighthook")),"package(hookmanager) LightHook does not support the X86 architecture.")
         end)
     end