diff options
Diffstat (limited to 'xmake/tools/link.lua')
| -rwxr-xr-x | xmake/tools/link.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua index 197597711..caea45029 100755 --- a/xmake/tools/link.lua +++ b/xmake/tools/link.lua @@ -77,13 +77,13 @@ function strip(level) end -- make the symbol flag -function symbol(level, symbolfile) - +function symbol(level, target) + -- debug? generate *.pdb file local flags = "" if level == "debug" then - if symbolfile then - flags = "-debug -pdb:" .. symbolfile + if target and target.symbolfile then + flags = "-debug -pdb:" .. target:symbolfile() else flags = "-debug" end |
