[1/3] Add config.h to generated_files for sim

Message ID 20210504145818.4088770-2-tromey@adacore.com
State New
Headers show
Series
  • Some minor sim fixes
Related show

Commit Message

Tom Tromey May 4, 2021, 2:58 p.m.
I noticed that config.h isn't in 'generated_files' in the sim
subdirectories.  This causes it to sometimes be rebuilt too late.

sim/common/ChangeLog
2021-05-04  Tom Tromey  <tromey@adacore.com>

	* Make-common.in (generated_files): Add config.h.
---
 sim/common/ChangeLog      | 4 ++++
 sim/common/Make-common.in | 1 +
 2 files changed, 5 insertions(+)

-- 
2.26.3

Comments

Natarajan, Kavitha via Gdb-patches May 4, 2021, 5:38 p.m. | #1
On 04 May 2021 08:58, Tom Tromey wrote:
> I noticed that config.h isn't in 'generated_files' in the sim

> subdirectories.  This causes it to sometimes be rebuilt too late.


lgtm, thanks
-mike

Patch

diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 0f877490509..c92228bb929 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -420,6 +420,7 @@  endif
 all_object_files = $(LIB_OBJS) $(SIM_RUN_OBJS)
 generated_files = \
 	$(SIM_EXTRA_DEPS) \
+	config.h \
 	hw-config.h \
 	modules.c \
 	targ-map.c \