Browse Source

fix hookmanager assert fail (#6119)

* fix assert fail

* Exclude the arm64 arch
muzili 8 months ago
parent
commit
8ca17794d4
1 changed files with 2 additions and 1 deletions
  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