diff options
| author | ruki <[email protected]> | 2017-07-04 16:57:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-04 16:57:24 +0800 |
| commit | 347b05c2c2b249c482f746ae2d7b4d72861e7501 (patch) | |
| tree | 90c86e1b2ffd15591490dc9a5325f06ad325fb1a /xmake/modules/core/tools/link.lua | |
| parent | fd8e051b5920bc73354b12d90088591b72e40ee9 (diff) | |
fix symbolfile for vs201x plugin
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 |
