summaryrefslogtreecommitdiff
path: root/gcc/ada/prj-conf.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-23 16:52:00 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-23 16:52:00 +0000
commitf69d4cc51e3c5b0497268cc4e6c1467d7c94d8ad (patch)
tree24c325e6db8e4bf942e361bc87eb190c7bb74045 /gcc/ada/prj-conf.ads
parent57a2f6d43739fc1395be454ecb675bcc5ef94958 (diff)
downloadgcc-f69d4cc51e3c5b0497268cc4e6c1467d7c94d8ad.tar.gz
2014-01-23 Vincent Celier <celier@adacore.com>
* prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt to find a configuration project file when Config_File_Name is No_Configuration_File. * prj-conf.ads (No_Configuration_File): New constant String. * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File with Config_File_Name set to No_Configuration_File, so that no existing configuration project file will be used, and the configuration project will be only created in memory when Add_Default_GNAT_Naming_Scheme is called. * projects.texi: Minor reformatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206985 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/prj-conf.ads')
-rw-r--r--gcc/ada/prj-conf.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ada/prj-conf.ads b/gcc/ada/prj-conf.ads
index 1c72fa769ba..467d9741e03 100644
--- a/gcc/ada/prj-conf.ads
+++ b/gcc/ada/prj-conf.ads
@@ -40,6 +40,12 @@ package Prj.Conf is
-- is set to Empty_Node when this procedure is called. You can then decide
-- to create a new config file if you need.
+ No_Configuration_File : constant String := "/";
+ -- When specified as a parameter Config_File_Name in the procedures below,
+ -- no existing configuration project file is parsed. This is used by
+ -- gnatmake, gnatclean and the GNAT driver to avoid parsing an existing
+ -- default configuration project file.
+
procedure Parse_Project_And_Apply_Config
(Main_Project : out Prj.Project_Id;
User_Project_Node : out Prj.Tree.Project_Node_Id;
@@ -68,6 +74,10 @@ package Prj.Conf is
-- happened while parsing the project itself (i.e. creating the tree),
-- User_Project_Node is also set to Empty_Node.
--
+ -- If Config_File_Name is No_Configuration_File, then no configuration
+ -- project file is parsed. Normally, in this case On_Load_Config is not
+ -- null, and it is used to create a configuration project file in memory.
+ --
-- Autoconf_Specified indicates whether the user has specified --autoconf.
-- If this is the case, the config file might be (re)generated, as
-- appropriate, to match languages and target if the one specified doesn't