summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/utils/symbols/extract/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/utils/symbols/extract/xmake.lua b/xmake/rules/utils/symbols/extract/xmake.lua
index 33f2323c9..6b85c2a1f 100644
--- a/xmake/rules/utils/symbols/extract/xmake.lua
+++ b/xmake/rules/utils/symbols/extract/xmake.lua
@@ -27,6 +27,7 @@ rule("utils.symbols.extract")
local strip = target:get("strip")
local symbols = table.wrap(target:get("symbols"))
if table.contains(symbols, "debug") and (strip == "all" or strip == "debug")
+ and not target:is_plat("windows") -- we need not to strip pdb for windows, https://github.com/xmake-io/xmake/issues/6554
and (target:is_binary() or target:is_shared()) and target:tool("strip") then -- only for strip command
target:data_set("utils.symbols.extract", true)
target:set("strip", "none") -- disable strip in link stage, because we need to run separate strip commands