diff options
author | Vincent Celier <celier@adacore.com> | 2007-04-06 11:24:28 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2007-04-06 11:24:28 +0200 |
commit | 0780eccc5da4e9c0f4e8492fab37e13459da6476 (patch) | |
tree | 563a614cf2fe714c51cbba326b304bb16359a781 /gcc/ada/mlib-prj.adb | |
parent | 0916df6a3e3a63c275b1b88b6298bcdd97e9b2d4 (diff) | |
download | gcc-0780eccc5da4e9c0f4e8492fab37e13459da6476.zip gcc-0780eccc5da4e9c0f4e8492fab37e13459da6476.tar.gz gcc-0780eccc5da4e9c0f4e8492fab37e13459da6476.tar.bz2 |
mlib.adb (Building_Library): Only output "building a library..." in verbose mode
2007-04-06 Vincent Celier <celier@adacore.com>
* mlib.adb (Building_Library): Only output "building a library..." in
verbose mode
* mlib-prj.adb (Build_Library): Only output lists of object and ALI
files in verbose mode.
* mlib-utl.adb (Ar): Only output the first object files when not in
verbose mode.
(Gcc): Do not display all the object files if not in verbose mode, only
the first one.
From-SVN: r123585
Diffstat (limited to 'gcc/ada/mlib-prj.adb')
-rw-r--r-- | gcc/ada/mlib-prj.adb | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/gcc/ada/mlib-prj.adb b/gcc/ada/mlib-prj.adb index 8910072..307e4f6 100644 --- a/gcc/ada/mlib-prj.adb +++ b/gcc/ada/mlib-prj.adb @@ -1393,30 +1393,35 @@ package body MLib.Prj is Write_Str (" library for project "); Write_Line (Project_Name); - Write_Eol; + -- Only output the list of object files and ALI files in verbose + -- mode. - Write_Line ("object files:"); + if Opt.Verbose_Mode then + Write_Eol; - for Index in Object_Files'Range loop - Write_Str (" "); - Write_Line (Object_Files (Index).all); - end loop; + Write_Line ("object files:"); - Write_Eol; + for Index in Object_Files'Range loop + Write_Str (" "); + Write_Line (Object_Files (Index).all); + end loop; - if Ali_Files'Length = 0 then - Write_Line ("NO ALI files"); + Write_Eol; - else - Write_Line ("ALI files:"); + if Ali_Files'Length = 0 then + Write_Line ("NO ALI files"); - for Index in Ali_Files'Range loop - Write_Str (" "); - Write_Line (Ali_Files (Index).all); - end loop; - end if; + else + Write_Line ("ALI files:"); - Write_Eol; + for Index in Ali_Files'Range loop + Write_Str (" "); + Write_Line (Ali_Files (Index).all); + end loop; + end if; + + Write_Eol; + end if; end if; -- We check that all object files are regular files |