Skip to content

Commit

Permalink
Adapt to gpr2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thvnx committed Jul 25, 2024
1 parent e8d0aca commit c576f6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion extensions/src/libadalang-helpers.adb
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,9 @@ package body Libadalang.Helpers is
end if;

Error := not Project.Load
(Options, Absent_Dir_Error => Absent_Dir_Error);
(Options,
With_Runtime => True,
Absent_Dir_Error => Absent_Dir_Error);
exception
when Exc : GPR2.Project_Error =>
Error := True;
Expand Down
2 changes: 1 addition & 1 deletion testsuite/tests/ada_api/gpr2_context/main.adb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ procedure Main is
-- Load the requested tree and fetch the requested project (if any)

Options.Add_Switch (GPR2.Options.P, Root_Project);
if not Tree.Load (Options) then
if not Tree.Load (Options, With_Runtime => True) then
raise Program_Error;
elsif Tree.Has_Messages then
Tree.Log_Messages.Output_Messages (Information => False);
Expand Down

0 comments on commit c576f6d

Please sign in to comment.