gcc-patches@gcc.gnu.org
[Top] [All Lists]

[Ada] gnatmake -eL -P <symbolic link>/<project name>

Subject: [Ada] gnatmake -eL -P <symbolic link>/<project name>
From: Arnaud Charlet
Date: Mon, 30 Nov 2009 14:36:48 +0100
When a project-aware tool such as gnatmake is called with a path
for the project that include a symbolically linked directory, the
paths of the projects in the project tree may be incorrect, even if
switch -eL is used. This patch corrects this.
The test is to call
   gnatmake -eL -P tutu/prj.gpr
where tutu is a symbolic link for directory toto/titi and where prj.gpr,
located in directory toto/titi, imports "../imp.gpr" which is located in
directory toto.

Tested on x86_64-pc-linux-gnu, committed on trunk

2009-11-30  Vincent Celier  <celier@xxxxxxxxxxx>

        * prj-part.adb (Project_Path_Name_Of): Resolve links for final result
        if -eL has been specified.

Attachment: difs
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [Ada] gnatmake -eL -P <symbolic link>/<project name>, Arnaud Charlet <=