Sfoglia il codice sorgente

fix hookmanager assert fail (#6119)

* fix assert fail

* Exclude the arm64 arch
muzili 8 mesi fa
parent
commit
8ca17794d4
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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
     if on_check then
         on_check(function (package)
         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)
     end
     end