Message ID | 20170908091322.GA88791@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Do not generate .ali files for subunits | expand |
Index: gnat1drv.adb =================================================================== --- gnat1drv.adb (revision 251863) +++ gnat1drv.adb (working copy) @@ -1353,10 +1353,10 @@ Write_Str (" (subunit)"); Write_Eol; - -- Force generation of ALI file, for backward compatibility + -- Do not generate an ALI file in this case, because it would + -- become obsolete when the parent is compiled, and thus + -- confuse tools such as gnatfind. - Opt.Force_ALI_Tree_File := True; - elsif Main_Unit_Kind = N_Subprogram_Declaration then Write_Str (" (subprogram spec)"); Write_Eol;