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/core/tool/compiler.lua | |
| parent | ac2b15dd34b40f1cf24d91856192b26cd772686e (diff) | |
enable pdb for windows
Diffstat (limited to 'xmake/core/tool/compiler.lua')
| -rw-r--r-- | xmake/core/tool/compiler.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua index 5125aecea..849a380cb 100644 --- a/xmake/core/tool/compiler.lua +++ b/xmake/core/tool/compiler.lua @@ -162,8 +162,11 @@ function compiler:_addflags_from_target(flags, target) end -- add the symbol flags - for _, symbol in ipairs(table.wrap(target:get("symbols"))) do - table.join2(flags, self:symbol(symbol)) + if target.symbolfile then + local symbolfile = target:symbolfile() + for _, symbol in ipairs(table.wrap(target:get("symbols"))) do + table.join2(flags, self:symbol(symbol, symbolfile)) + end end -- add the warning flags @@ -379,10 +382,10 @@ function compiler:compcmd(sourcefile, objectfile, target) end -- make the symbol flag -function compiler:symbol(level) +function compiler:symbol(level, symbolfile) -- make it - return self:_tool().symbol(level) + return self:_tool().symbol(level, symbolfile) end -- make the language flag |
