Преглед изворни кода

+ implemented the -Xg option for putting the debug information in a separate
file on i8086-msdos and i8086-win16

git-svn-id: trunk@39096 -

nickysn пре 7 година
родитељ
комит
6f44deb557
2 измењених фајлова са 4 додато и 0 уклоњено
  1. 2 0
      compiler/systems/t_msdos.pas
  2. 2 0
      compiler/systems/t_win16.pas

+ 2 - 0
compiler/systems/t_msdos.pas

@@ -271,6 +271,8 @@ begin
     LinkRes.Add('debug codeview')
     LinkRes.Add('debug codeview')
   else if cs_debuginfo in current_settings.moduleswitches then
   else if cs_debuginfo in current_settings.moduleswitches then
     LinkRes.Add('debug watcom all');
     LinkRes.Add('debug watcom all');
+  if cs_link_separate_dbg_file in current_settings.globalswitches then
+    LinkRes.Add('option symfile');
 
 
   { add objectfiles, start with prt0 always }
   { add objectfiles, start with prt0 always }
   case current_settings.x86memorymodel of
   case current_settings.x86memorymodel of

+ 2 - 0
compiler/systems/t_win16.pas

@@ -232,6 +232,8 @@ begin
     LinkRes.Add('debug dwarf')
     LinkRes.Add('debug dwarf')
   else if target_dbg.id=dbg_codeview then
   else if target_dbg.id=dbg_codeview then
     LinkRes.Add('debug codeview');
     LinkRes.Add('debug codeview');
+  if cs_link_separate_dbg_file in current_settings.globalswitches then
+    LinkRes.Add('option symfile');
 
 
   { add objectfiles, start with prt0 always }
   { add objectfiles, start with prt0 always }
   case current_settings.x86memorymodel of
   case current_settings.x86memorymodel of