summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ldc2.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-27 17:03:56 +0800
committerGitHub <[email protected]>2023-03-27 17:03:56 +0800
commit3f94114c7d062967a9622a4dc5fca1ec5f80e690 (patch)
treecb1d9c9435fc5d54261b3fc4d67f5f599522cb1c /xmake/modules/core/tools/ldc2.lua
parent6eb7f2203ad50d475e6e720b1506e9c046b43cdd (diff)
parentfeb5d21a6e9a0b657c659a8d28840147fbd5c62d (diff)
Merge pull request #3563 from pdagobert/improve-d-projects
Improve d projects
Diffstat (limited to 'xmake/modules/core/tools/ldc2.lua')
-rw-r--r--xmake/modules/core/tools/ldc2.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/ldc2.lua b/xmake/modules/core/tools/ldc2.lua
index 3a2dbf160..5a9f77026 100644
--- a/xmake/modules/core/tools/ldc2.lua
+++ b/xmake/modules/core/tools/ldc2.lua
@@ -49,7 +49,7 @@ function nf_optimize(self, level)
end
-- make the symbol flag
-function nf_symbol(self, level)
+function nf_symbol(self, level, target)
local kind = self:kind()
if language.sourcekinds()[kind] then
local maps = _g.symbol_maps
@@ -61,5 +61,7 @@ function nf_symbol(self, level)
_g.symbol_maps = maps
end
return maps[level .. '_' .. kind] or maps[level]
+ elseif (kind == "dcld" or kind == "dcsh") and target:is_plat("windows") and level == "debug" then
+ return "-g"
end
end