aboutsummaryrefslogtreecommitdiff
path: root/sim/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-29 20:16:38 -0400
committerMike Frysinger <vapier@gentoo.org>2024-01-08 21:36:44 -0500
commit435ad222b3de93fa647fba7221eece36b1b395eb (patch)
tree596d8d68a79a4625ebb58cdde00a3080b72d8594 /sim/Makefile.in
parent5048cb28f4a864d2426bcec8cb02f26ef3daac85 (diff)
downloadgdb-435ad222b3de93fa647fba7221eece36b1b395eb.zip
gdb-435ad222b3de93fa647fba7221eece36b1b395eb.tar.gz
gdb-435ad222b3de93fa647fba7221eece36b1b395eb.tar.bz2
sim: warnings: compile build tools with -Werror too
Add support for compiling build tools with various -Werror settings. Since the tools don't compile cleanly with the same set of flags as the rest of the sim code, we need to maintain & test a separate list. Only bother when not cross-compiling so we don't have to test all the flags against the build compiler. This should be good enough for our actual development flows.
Diffstat (limited to 'sim/Makefile.in')
-rw-r--r--sim/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/Makefile.in b/sim/Makefile.in
index c96e8a9..1e94771 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -1608,6 +1608,8 @@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
+BUILD_WARN_CFLAGS = @BUILD_WARN_CFLAGS@
+BUILD_WERROR_CFLAGS = @BUILD_WERROR_CFLAGS@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CC_FOR_BUILD = @CC_FOR_BUILD@
@@ -1901,7 +1903,7 @@ AM_CPPFLAGS = $(INCGNU) -I$(srcroot) -I$(srcroot)/include -I../bfd \
-,_,$(@D)_$(@F))) -I$(srcdir)/common -DSIM_TOPDIR_BUILD
AM_CPPFLAGS_FOR_BUILD = -I$(srcroot)/include $(SIM_HW_CFLAGS) \
$(SIM_INLINE) -I$(srcdir)/common
-COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
+COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(BUILD_WERROR_CFLAGS) $(BUILD_WARN_CFLAGS)
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
SIM_INSTALL_DATA_LOCAL_DEPS =
SIM_INSTALL_EXEC_LOCAL_DEPS = $(am__append_33)