diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-17 09:42:19 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-17 09:42:19 +0000 |
commit | 5386d9cf31d935d4afe5d5c8efa5f521fc34542d (patch) | |
tree | 4728ff516530c2b8bab54862de22026b6598e1e5 /gcc/ada/prj-nmsc.adb | |
parent | 8aa885d03314fbb19d35723fb007a78d5d54cf8e (diff) | |
download | gcc-5386d9cf31d935d4afe5d5c8efa5f521fc34542d.tar.gz |
2009-08-17 Emmanuel Briot <briot@adacore.com>
* prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
(Processing_Flags.Require_Obj_Dirs): new field, which controls whether
object directories must be present. In the case of gprclean at least,
these are optional (if they do not exist there is nothing to clean)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150827 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/prj-nmsc.adb')
-rw-r--r-- | gcc/ada/prj-nmsc.adb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/gcc/ada/prj-nmsc.adb b/gcc/ada/prj-nmsc.adb index 75e4c6ea717..1a0371855c5 100644 --- a/gcc/ada/prj-nmsc.adb +++ b/gcc/ada/prj-nmsc.adb @@ -5148,10 +5148,21 @@ package body Prj.Nmsc is Err_Vars.Error_Msg_File_1 := File_Name_Type (Object_Dir.Value); - Error_Msg - (Data.Flags, - "object directory { not found", - Project.Location, Project); + + case Data.Flags.Require_Obj_Dirs is + when Error => + Error_Msg + (Data.Flags, + "object directory { not found", + Project.Location, Project); + when Warning => + Error_Msg + (Data.Flags, + "?object directory { not found", + Project.Location, Project); + when Silent => + null; + end case; end if; end if; |