summaryrefslogtreecommitdiff
path: root/xmake/tools/link.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/tools/link.lua')
-rwxr-xr-xxmake/tools/link.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua
index c606edb74..cacbb3eab 100755
--- a/xmake/tools/link.lua
+++ b/xmake/tools/link.lua
@@ -78,12 +78,17 @@ end
function symbol(level, symbolfile)
-- debug? generate *.pdb file
- if level == "debug" and symbolfile then
- return "-debug -pdb:" .. symbolfile
+ local flags = ""
+ if level == "debug" then
+ if symbolfile then
+ flags = "-debug -pdb:" .. symbolfile
+ else
+ flags = "-debug"
+ end
end
-- none
- return ""
+ return flags
end
-- make the linklib flag