diff options
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 3 |
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 |
