Explorar el Código

Handle link map for msdos wlink

git-svn-id: trunk@26461 -
pierre hace 11 años
padre
commit
2a6e592fba
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      compiler/systems/t_msdos.pas

+ 2 - 0
compiler/systems/t_msdos.pas

@@ -276,6 +276,8 @@ begin
   else
     LinkRes.Add('format dos');
   LinkRes.Add('option dosseg');
+  if (cs_link_map in current_settings.globalswitches) then
+    LinkRes.Add('option map='+maybequoted(ChangeFileExt(current_module.exefilename,'.map')));
   LinkRes.Add('name ' + maybequoted(current_module.exefilename));
 
   { Write and Close response }