Explorar o código

+ tell wlink to add dwarf debug info to the executable when -gw2/3/4 is used

git-svn-id: trunk@25874 -
nickysn %!s(int64=11) %!d(string=hai) anos
pai
achega
12b1e0cbfd
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      compiler/systems/t_msdos.pas

+ 3 - 0
compiler/systems/t_msdos.pas

@@ -247,6 +247,9 @@ begin
   { Add all options to link.res instead of passing them via command line:
   { Add all options to link.res instead of passing them via command line:
     DOS command line is limited to 126 characters! }
     DOS command line is limited to 126 characters! }
 
 
+  if paratargetdbg in [dbg_dwarf2,dbg_dwarf3,dbg_dwarf4] then
+    LinkRes.Add('debug dwarf');
+
   { add objectfiles, start with prt0 always }
   { add objectfiles, start with prt0 always }
   case current_settings.x86memorymodel of
   case current_settings.x86memorymodel of
     mm_tiny:    LinkRes.Add('file ' + maybequoted(FindObjectFile('prt0t','',false)));
     mm_tiny:    LinkRes.Add('file ' + maybequoted(FindObjectFile('prt0t','',false)));