summaryrefslogtreecommitdiff
path: root/xmake/tools/link.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-01-26 13:55:23 +0800
committerruki <[email protected]>2017-01-26 13:55:23 +0800
commitca3f925d00366c8b478d63886245307567682aaa (patch)
tree1436434640fc1876996e8fbe9d0caf6c81f247a3 /xmake/tools/link.lua
parentb9685215fcd76bc92a20f0d534f65fa692a599ec (diff)
rewrite named flags for compiler
Diffstat (limited to 'xmake/tools/link.lua')
-rwxr-xr-xxmake/tools/link.lua8
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