Commit 225a0c5c by Vincent Celier Committed by Arnaud Charlet

prj-conf.adb (Get_Or_Create_Configuration_File): Never parse a config project…

prj-conf.adb (Get_Or_Create_Configuration_File): Never parse a config project file if On_Load_Config is not null.

2014-01-23  Vincent Celier  <celier@adacore.com>

	* prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
	a config project file if On_Load_Config is not null.
	* prj-pars.adb: Minor comment changes.

From-SVN: r206984
parent bdd6d80a
2014-01-23 Vincent Celier <celier@adacore.com>
* prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
a config project file if On_Load_Config is not null.
* prj-pars.adb: Minor comment changes.
2014-01-23 Ed Schonberg <schonberg@adacore.com> 2014-01-23 Ed Schonberg <schonberg@adacore.com>
* lib-xref.adb (Output_References): Output progenitors of * lib-xref.adb (Output_References): Output progenitors of
......
...@@ -1420,12 +1420,17 @@ package body Prj.Conf is ...@@ -1420,12 +1420,17 @@ package body Prj.Conf is
-- Parse the configuration file -- Parse the configuration file
if Verbose_Mode and then Config_File_Path /= null then if Verbose_Mode
and then Config_File_Path /= null
and then On_Load_Config = null
then
Write_Str ("Checking configuration "); Write_Str ("Checking configuration ");
Write_Line (Config_File_Path.all); Write_Line (Config_File_Path.all);
end if; end if;
if Config_File_Path /= null then -- Add comment for On_Load_Config test ???
if Config_File_Path /= null and then On_Load_Config = null then
Prj.Part.Parse Prj.Part.Parse
(In_Tree => Project_Node_Tree, (In_Tree => Project_Node_Tree,
Project => Config_Project_Node, Project => Config_Project_Node,
......
...@@ -83,9 +83,6 @@ package body Prj.Pars is ...@@ -83,9 +83,6 @@ package body Prj.Pars is
-- However, we will simulate one that only contains the default -- However, we will simulate one that only contains the default
-- GNAT naming scheme. -- GNAT naming scheme.
-- We pass an invalid config_file_name, to prevent reading a
-- default.cgpr that might happen to be in the current directory.
Process_Project_And_Apply_Config Process_Project_And_Apply_Config
(Main_Project => The_Project, (Main_Project => The_Project,
User_Project_Node => Project_Node, User_Project_Node => Project_Node,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment