diff options
Diffstat (limited to 'xmake/modules/core/tools/ldc2.lua')
| -rw-r--r-- | xmake/modules/core/tools/ldc2.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/ldc2.lua b/xmake/modules/core/tools/ldc2.lua index 5a9f77026..49a1c451e 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, target) +function nf_symbol(self, level) local kind = self:kind() if language.sourcekinds()[kind] then local maps = _g.symbol_maps @@ -61,7 +61,7 @@ function nf_symbol(self, level, target) _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 + elseif (kind == "dcld" or kind == "dcsh") and self:is_plat("windows") and level == "debug" then return "-g" end end |
