Browse Source

fix pcre2

ruki 3 years ago
parent
commit
14008fca2f
1 changed files with 4 additions and 1 deletions
  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)
     on_load(function (package)
         local bitwidth = package:config("bitwidth") or "8"
         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
         if package:version():ge("10.39") and package:is_plat("windows") and not package:config("shared") then
             package:add("links", "pcre2-" .. bitwidth .. "-static" .. suffix)
             package:add("links", "pcre2-" .. bitwidth .. "-static" .. suffix)
         else
         else