pull/1530/head
ruki 2 years ago
parent d807336870
commit f7886cd4b4
  1. 5
      packages/p/pcre2/xmake.lua

@ -16,10 +16,11 @@ 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 ""
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") package:add("links", "pcre2-" .. bitwidth .. "-static" .. suffix)
else else
package:add("links", "pcre2-" .. bitwidth) package:add("links", "pcre2-" .. bitwidth .. suffix)
end end
package:add("defines", "PCRE2_CODE_UNIT_WIDTH=" .. bitwidth) package:add("defines", "PCRE2_CODE_UNIT_WIDTH=" .. bitwidth)
if not package:config("shared") then if not package:config("shared") then

Loading…
Cancel
Save