From b61e7996260ccdafe32b292ea6c00bd8412e8951 Mon Sep 17 00:00:00 2001 From: pdagobert Date: Sun, 19 Mar 2023 10:16:43 +0100 Subject: Fix pdb generation for dmd and ldc --- xmake/modules/core/tools/dmd.lua | 2 ++ xmake/modules/core/tools/ldc2.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xmake/modules/core/tools/dmd.lua b/xmake/modules/core/tools/dmd.lua index 99e872390..2570bc240 100644 --- a/xmake/modules/core/tools/dmd.lua +++ b/xmake/modules/core/tools/dmd.lua @@ -83,6 +83,8 @@ function nf_symbol(self, level) _g.symbol_maps = maps end return maps[level .. '_' .. kind] or maps[level] + elseif kind == "dcld" then + return "-g" end end diff --git a/xmake/modules/core/tools/ldc2.lua b/xmake/modules/core/tools/ldc2.lua index 3a2dbf160..b9c3d61e1 100644 --- a/xmake/modules/core/tools/ldc2.lua +++ b/xmake/modules/core/tools/ldc2.lua @@ -61,5 +61,7 @@ function nf_symbol(self, level) _g.symbol_maps = maps end return maps[level .. '_' .. kind] or maps[level] + elseif kind == "dcld" then + return "-g" end end -- cgit v1.3.1