2
0
Эх сурвалжийг харах

update stringzilla to 2.0.3 (#2859)

* update stringzilla to 2.0.3

* fix test

* enable all plat

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
xpxz 1 жил өмнө
parent
commit
b3fef0ca02

+ 7 - 2
packages/s/stringzilla/xmake.lua

@@ -8,11 +8,16 @@ package("stringzilla")
              "https://github.com/ashvardanian/StringZilla.git")
 
     add_versions("v1.2.2", "2e17c49965841647a1c371247f53b2f576e5fb32fe4b84a080d425b12f17703c")
+    add_versions("v2.0.3", "6b52a7b4eb8383cbcf83608eaa08e5ba588a378449439b73584713a16d8920e3")
 
-    on_install("windows|x64", "linux|x86_64", "mingw|x86_64", "msys", function (package)
+    on_install(function (package)
         os.cp("stringzilla/stringzilla.h", package:installdir("include"))
     end)
 
     on_test(function (package)
-        assert(package:has_cxxfuncs("strzl_sort", {includes = "stringzilla.h", configs = {languages = "c++17"}}))
+        if package:version():gt("2.0.0") then
+            assert(package:has_cfuncs("sz_sort", {includes = "stringzilla.h"}))
+        else
+            assert(package:has_cxxfuncs("strzl_sort", {includes = "stringzilla.h", configs = {languages = "c++17"}}))
+        end
     end)