summaryrefslogtreecommitdiff
path: root/gcc/ada/makeutl.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-04 12:28:58 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-04 12:28:58 +0000
commit75cdd066e9cf1d0950efefebb16f384567e75931 (patch)
treed05221c631ae46515cef4225e81e6e87ec112819 /gcc/ada/makeutl.ads
parenta273015dd168c683e5e1f0516889187d4c20ab0e (diff)
downloadgcc-75cdd066e9cf1d0950efefebb16f384567e75931.tar.gz
2011-08-04 Emmanuel Briot <briot@adacore.com>
* make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now shared with gprbuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177372 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/makeutl.ads')
-rw-r--r--gcc/ada/makeutl.ads27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/ada/makeutl.ads b/gcc/ada/makeutl.ads
index 91e0769d4fc..f3ac998b6ae 100644
--- a/gcc/ada/makeutl.ads
+++ b/gcc/ada/makeutl.ads
@@ -233,6 +233,33 @@ package Makeutl is
-- Terminate program, with or without a message, setting the status code
-- according to Fatal. This properly removes all temporary files.
+ --------------
+ -- Switches --
+ --------------
+
+ generic
+ with function Add_Switch
+ (Switch : String;
+ For_Lang : Name_Id;
+ For_Builder : Boolean;
+ Has_Global_Compilation_Switches : Boolean) return Boolean;
+ -- For_Builder is true if we have a builder switch
+ -- This function should return True in case of success (the switch is
+ -- valid), False otherwise. The error message will be displayed by
+ -- Compute_Builder_Switches itself.
+ -- Has_Global_Compilation_Switches is True if the attribute
+ -- Global_Compilation_Switches is defined in the project.
+
+ procedure Compute_Builder_Switches
+ (Project_Tree : Project_Tree_Ref;
+ Root_Environment : in out Prj.Tree.Environment;
+ Main_Project : Project_Id;
+ Only_For_Lang : Name_Id := No_Name);
+ -- Compute the builder switches and global compilation switches.
+ -- Every time a switch is found in the project, it is passed to Add_Switch.
+ -- You can provide a value for Only_For_Lang so that we only look for
+ -- this language when parsing the global compilation switches.
+
-----------------------
-- Project_Tree data --
-----------------------