diff mbox

[Ada] Make sure generated files are created first

Message ID 1533803.gToupQLO0B@polaris
State New
Headers show

Commit Message

Eric Botcazou Oct. 9, 2015, 8:11 a.m. UTC
As reported by Alan L., we need to make sure that the generated files are 
created before gigi is compiled.

Tested on x86_64-suse-linux, applied on all branches.


2015-10-09  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/Make-lang.in: Make sure that GNAT1_OBJS and not just
	GNAT1_ADA_OBJS are compiled only after generated files are created.
diff mbox

Patch

Index: gcc-interface/Make-lang.in
===================================================================
--- gcc-interface/Make-lang.in	(revision 228597)
+++ gcc-interface/Make-lang.in	(working copy)
@@ -1026,7 +1026,7 @@  ada_generated_files = ada/sinfo.h ada/ei
 
 # When building from scratch we don't have dependency files, the only thing
 # we need to ensure is that the generated files are created first.
-$(GNAT1_ADA_OBJS) $(GNATBIND_OBJS): | $(ada_generated_files)
+$(GNAT1_OBJS) $(GNATBIND_OBJS): | $(ada_generated_files)
 
 # Manually include the auto-generated dependencies for the Ada host objects.
 ADA_DEPFILES = $(foreach obj,$(GNAT1_ADA_OBJS) $(GNATBIND_OBJS),\