ruki 6 lat temu
rodzic
commit
0d87df5cc6
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      packages/p/pcre2/xmake.lua

+ 4 - 0
packages/p/pcre2/xmake.lua

@@ -44,3 +44,7 @@ package("pcre2")
         end
         import("package.tools.autoconf").install(package, configs)
     end)
+
+    on_test(function (package)
+        assert(import("lib.detect.has_cfuncs")("pcre2_compile", {configs = package:fetch(), includes = "pcre2.h", links = package:get("links")}))
+    end)