Skip to content

Commit

Permalink
Merge branch 'topic/gpr2' into 'master'
Browse files Browse the repository at this point in the history
Adapt to gpr2 changes

See merge request eng/libadalang/libadalang!1709
  • Loading branch information
thvnx committed Jul 25, 2024
2 parents e8d0aca + c576f6d commit 48a9220
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 48a9220

Please sign in to comment.