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] Stand-Alone Library with attribute Interfaces


A library project with an attribute Interfaces that include one or
several Ada units was not deemed a Stand-Alone Library project. This
patch corrects this.

The test for this is to build a project such as:

project Prj is
   for Library_Name use "prj";
   for Library_Dir  use "lib";
   for Interfaces use ("pkg.ads");
end Prj;

The project should be a Stand_Alone Library project.

Tested on x86_64-pc-linux-gnu, committed on trunk

2012-01-30  Vincent Celier  <celier@adacore.com>

	* prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs
	for the project if either attribute Library_Interface or
	Interfaces is declared.
	(Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in
	Check_Interfaces.

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]