mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 14:29:13 +02:00
* msdos: Include debug info only when it is enabled by options.
git-svn-id: trunk@46297 -
This commit is contained in:
parent
d9db680937
commit
fcf085b141
@ -265,14 +265,17 @@ begin
|
||||
|
||||
LinkRes.Add('option quiet');
|
||||
|
||||
if target_dbg.id in [dbg_dwarf2,dbg_dwarf3,dbg_dwarf4] then
|
||||
LinkRes.Add('debug dwarf')
|
||||
else if target_dbg.id=dbg_codeview then
|
||||
LinkRes.Add('debug codeview')
|
||||
else if cs_debuginfo in current_settings.moduleswitches then
|
||||
LinkRes.Add('debug watcom all');
|
||||
if cs_link_separate_dbg_file in current_settings.globalswitches then
|
||||
LinkRes.Add('option symfile');
|
||||
if cs_debuginfo in current_settings.moduleswitches then
|
||||
begin
|
||||
if target_dbg.id in [dbg_dwarf2,dbg_dwarf3,dbg_dwarf4] then
|
||||
LinkRes.Add('debug dwarf')
|
||||
else if target_dbg.id=dbg_codeview then
|
||||
LinkRes.Add('debug codeview')
|
||||
else
|
||||
LinkRes.Add('debug watcom all');
|
||||
if cs_link_separate_dbg_file in current_settings.globalswitches then
|
||||
LinkRes.Add('option symfile');
|
||||
end;
|
||||
|
||||
{ add objectfiles, start with prt0 always }
|
||||
case current_settings.x86memorymodel of
|
||||
|
Loading…
Reference in New Issue
Block a user