Skip to content

Commit 5942a11

Browse files
Execute Build Targets in current directory
When a directory is not explictly specified by the user use GS's current directory to execute build targets, instead of the project's root directory. This is needed since users might change the current directory themselves, using the GPS.cd Python function for instance. For eng/ide/gnatstudio#129
1 parent 0781592 commit 5942a11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builder/src/build_command_manager-end_of_build.adb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ package body Build_Command_Manager.End_Of_Build is
235235
if Directory /= No_File then
236236
Build.Full.Dir := Directory;
237237
else
238-
Build.Full.Dir :=
239-
Builder.Kernel.Registry.Tree.Root_Project.Project_Path.Dir;
238+
Build.Full.Dir := GNATCOLL.VFS.Get_Current_Dir;
240239
end if;
241240
end if;
242241
end Local_Expand_Command_Line;

0 commit comments

Comments
 (0)