aboutsummaryrefslogtreecommitdiff
path: root/sim/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-18 01:14:39 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-18 10:25:04 -0400
commit47ce766a8b922377425cfa88189acb1d43ca58af (patch)
tree55a8e203cc2c722f0fe6410ca0fec574f3ba791e /sim/Makefile.in
parent5a767724d7e4d8dfe70a82edceaeaa6d57ff2b84 (diff)
downloadgdb-47ce766a8b922377425cfa88189acb1d43ca58af.zip
gdb-47ce766a8b922377425cfa88189acb1d43ca58af.tar.gz
gdb-47ce766a8b922377425cfa88189acb1d43ca58af.tar.bz2
sim: unify -Werror build settings
Move these options up to the common dir so we only test & export them once across all ports. It also enables -Werror usage on the common files we've been pulling out of arch subdirs.
Diffstat (limited to 'sim/Makefile.in')
-rw-r--r--sim/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/Makefile.in b/sim/Makefile.in
index 3a85220..3910325 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -206,6 +206,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
$(top_srcdir)/m4/sim_ac_option_profile.m4 \
$(top_srcdir)/m4/sim_ac_option_stdio.m4 \
$(top_srcdir)/m4/sim_ac_option_trace.m4 \
+ $(top_srcdir)/m4/sim_ac_option_warnings.m4 \
$(top_srcdir)/m4/sim_ac_platform.m4 \
$(top_srcdir)/m4/sim_ac_toolchain.m4 \
$(top_srcdir)/configure.ac
@@ -667,6 +668,8 @@ SHELL = @SHELL@
SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@
STRIP = @STRIP@
VERSION = @VERSION@
+WARN_CFLAGS = @WARN_CFLAGS@
+WERROR_CFLAGS = @WERROR_CFLAGS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
@@ -738,6 +741,7 @@ CLEANFILES = common/version.c common/version.c-stamp \
DISTCLEANFILES =
MOSTLYCLEANFILES = core $(am__append_4) site-srcdir.exp testrun.log \
testrun.sum
+AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
AM_CPPFLAGS = -I$(srcroot)/include -I$(srcdir)/common
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@