summaryrefslogtreecommitdiff
path: root/xmake/tools/link.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-28 22:17:47 +0800
committerruki <[email protected]>2016-07-28 22:17:47 +0800
commit001fb494ea8333ae2499875bd6ddf3ebcf049bc2 (patch)
tree16cdcb81b4f25cb952c127c9018b42e64824937c /xmake/tools/link.lua
parenta3e62142764c1d0072988b2f6a42e925c1605565 (diff)
check -FS flags for windows
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