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] |
As documented, gnatmake -f -u <main> should always invoke the compiler. This patch ensures that it is aways true, even when the ALI file is read-only, when the source is in a directory specified with -aL or is a direct source of an externally built project. Tested on x86_64-pc-linux-gnu, committed on trunk 2010-06-18 Vincent Celier <celier@adacore.com> * make.adb (Must_Compile): New Boolean global variable (Main_On_Command_Line): New Boolean global variable (Collect_Arguments_And_Compile): Do compile if Must_Compile is True, even when the project is externally built. (Start_Compile_If_Possible): Compile in -aL directories if Check_Readonly_Files is True. Do compile if Must_Compile is True, even when the project is externally built. (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when invoked with -f -u and one or several mains on the command line. (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main is specified on the command line.
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] |