2
0
Эх сурвалжийг харах

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

git-svn-id: trunk@25874 -
nickysn 11 жил өмнө
parent
commit
12b1e0cbfd

+ 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:
     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 }
   case current_settings.x86memorymodel of
     mm_tiny:    LinkRes.Add('file ' + maybequoted(FindObjectFile('prt0t','',false)));