From a7b4e164111cad5ffd7af28c10df9a9fbe996047 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 17 Jun 2025 22:44:58 +0800 Subject: fix releasedbg for clang #6554 --- xmake/rules/utils/symbols/extract/xmake.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.3.1