ruki 3 年 前
コミット
14008fca2f
1 ファイル変更4 行追加1 行削除
  1. 4 1
      packages/p/pcre2/xmake.lua

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

@@ -16,7 +16,10 @@ package("pcre2")
 
     on_load(function (package)
         local bitwidth = package:config("bitwidth") or "8"
-        local suffix = package:debug() and "d" or ""
+        local suffix = ""
+        if package:is_plat("windows") and package:debug() then
+            suffix = "d"
+        end
         if package:version():ge("10.39") and package:is_plat("windows") and not package:config("shared") then
             package:add("links", "pcre2-" .. bitwidth .. "-static" .. suffix)
         else