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

git-svn-id: trunk@25874 -
This commit is contained in:
nickysn 2013-10-27 20:30:00 +00:00
parent 9f979eb5c6
commit 12b1e0cbfd

View File

@ -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)));