This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] gnatclean clean up


Manually tested on i686-mingw
Tested on i686-linux, committed on trunk

This patch makes used of the untouched (non folded to lower case)
directories names in the project file. This fixes a problem on
Windows where a library specified with a project file Library_Name
and containing some capital letters was not removed properly.
This is a first patch ensuring that the
proper casing is displayed/used by all GNAT tools on non case
sensitive OS like Windows.
--
project Lib is
   for Source_Dirs use (".");
   for Library_Name use "MyLib";
   for Library_Dir use "lib";
   for Library_Kind use "static";
end Lib;
--
procedure A is
begin
   null;
end A;
--
   $ gnatmake -q -Plib
   $ gnatclean -q -Plib
--
At this point the lib directory must be empty (libMyLib.a should
be removed).

2007-06-06  Pascal Obry  <obry@adacore.com>

	* clean.adb (Clean_Archive): Use untouched casing for the archive name
	and the corresponding .deps file.
	(Clean_Interface_Copy_Directory): Use untouched casing for the library
	src directory. Minor code-clean-up. Use untouched casing for files
	read into the library src dir.
	(Clean_Library_Directory): Idem.
	(Parse_Cmd_Line): Accept new switch -aP

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]