summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools')
-rw-r--r--xmake/modules/core/tools/link.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua
index 6d11d3a94..f41a093d4 100644
--- a/xmake/modules/core/tools/link.lua
+++ b/xmake/modules/core/tools/link.lua
@@ -71,7 +71,8 @@ function nf_symbol(self, level, target)
-- debug? generate *.pdb file
local flags = ""
- if level == "debug" then
+ local targetkind = target:get("kind")
+ if level == "debug" and (targetkind == "binary" or targetkind == "shared") then
if target and target.symbolfile then
flags = "-debug -pdb:" .. target:symbolfile()
else