@@ -92,6 +92,7 @@ procedure GPRclean is
92
92
if Dry_Run then
93
93
if Is_Regular_File (Name) then
94
94
Text_IO.Put_Line (Name);
95
+
95
96
elsif Verbose then
96
97
Text_IO.Put_Line (" absent: " & Name);
97
98
end if ;
@@ -223,25 +224,28 @@ procedure GPRclean is
223
224
Tree : constant access Project.Tree.Object := View.Tree;
224
225
225
226
procedure Binder_Artifacts
226
- (Name : Name_Type; Language : Optional_Name_Type := No_Name);
227
+ (Name : Name_Type;
228
+ Language : Optional_Name_Type := No_Name);
227
229
-- Add binder artefacts for the name
228
230
229
231
-- --------------------
230
232
-- Binder_Artifacts --
231
233
-- --------------------
232
234
233
235
procedure Binder_Artifacts
234
- (Name : Name_Type; Language : Optional_Name_Type := No_Name)
236
+ (Name : Name_Type;
237
+ Language : Optional_Name_Type := No_Name)
235
238
is
236
239
use Ada.Text_IO;
237
240
238
- File : File_Type;
239
- Generated : Boolean := False;
240
241
BF : constant Path_Name.Full_Name :=
241
242
Obj_Dir.Compose
242
243
((if Language = No_Name
243
244
then No_Name
244
245
else View.Binder_Prefix (Language)) & Name).Value;
246
+ File : File_Type;
247
+ Generated : Boolean := False;
248
+
245
249
begin
246
250
if GNAT.OS_Lib.Is_Regular_File (BF) then
247
251
Open (File, Mode => In_File, Name => BF);
@@ -397,10 +401,12 @@ begin
397
401
if Verbose then
398
402
Text_IO.Put_Line (M.Format);
399
403
end if ;
404
+
400
405
when Message.Warning =>
401
406
if not Quiet_Output then
402
407
Text_IO.Put_Line (M.Format);
403
408
end if ;
409
+
404
410
when Message.Error =>
405
411
Text_IO.Put_Line (M.Format);
406
412
Config_Error := True;
@@ -449,6 +455,7 @@ exception
449
455
Text_IO.Put_Line (Log.Element (C).Format);
450
456
end loop ;
451
457
end if ;
458
+
452
459
Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
453
460
454
461
when E : others =>
0 commit comments