From f7886cd4b4334b29ed698897ee4c9a88579d7f0e Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 14 Oct 2022 22:33:04 +0800 Subject: [PATCH] fix pcre2 --- packages/p/pcre2/xmake.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/p/pcre2/xmake.lua b/packages/p/pcre2/xmake.lua index 3cd5a449f..2095b5eb8 100644 --- a/packages/p/pcre2/xmake.lua +++ b/packages/p/pcre2/xmake.lua @@ -16,10 +16,11 @@ package("pcre2") on_load(function (package) 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 - package:add("links", "pcre2-" .. bitwidth .. "-static") + package:add("links", "pcre2-" .. bitwidth .. "-static" .. suffix) else - package:add("links", "pcre2-" .. bitwidth) + package:add("links", "pcre2-" .. bitwidth .. suffix) end package:add("defines", "PCRE2_CODE_UNIT_WIDTH=" .. bitwidth) if not package:config("shared") then