瀏覽代碼

improve pcre2

ruki 6 年之前
父節點
當前提交
0d87df5cc6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/p/pcre2/xmake.lua

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

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