diff options
| author | ruki <[email protected]> | 2016-07-24 22:32:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-24 22:32:07 +0800 |
| commit | d03e84b7370c337dc121e4427d20e0948e977356 (patch) | |
| tree | 9155330f93c28befd8a8fa1f7508675d17c6cd8a /xmake/tools/link.lua | |
| parent | ac2b15dd34b40f1cf24d91856192b26cd772686e (diff) | |
enable pdb for windows
Diffstat (limited to 'xmake/tools/link.lua')
| -rwxr-xr-x | xmake/tools/link.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua index c15b53616..c606edb74 100755 --- a/xmake/tools/link.lua +++ b/xmake/tools/link.lua @@ -74,6 +74,18 @@ function strip(level) return "" end +-- make the symbol flag +function symbol(level, symbolfile) + + -- debug? generate *.pdb file + if level == "debug" and symbolfile then + return "-debug -pdb:" .. symbolfile + end + + -- none + return "" +end + -- make the linklib flag function linklib(lib) |
