Comments
Patch
===================================================================
@@ -1107,7 +1107,12 @@
Write_Line (Config_File_Path.all);
end if;
- if Config_File_Path /= null then
+ if On_Load_Config /= null then
+ On_Load_Config
+ (Config_File => Config_Project_Node,
+ Project_Node_Tree => Project_Node_Tree);
+
+ elsif Config_File_Path /= null then
Prj.Part.Parse
(In_Tree => Project_Node_Tree,
Project => Config_Project_Node,
@@ -1119,16 +1124,9 @@
Flags => Flags,
Target_Name => Target_Name);
else
- -- Maybe the user will want to create his own configuration file
Config_Project_Node := Empty_Node;
end if;
- if On_Load_Config /= null then
- On_Load_Config
- (Config_File => Config_Project_Node,
- Project_Node_Tree => Project_Node_Tree);
- end if;
-
if Config_Project_Node /= Empty_Node then
Prj.Proc.Process_Project_Tree_Phase_1
(In_Tree => Project_Tree,