aboutsummaryrefslogtreecommitdiff
path: root/sim/common/Make-common.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-08 02:24:51 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-08 15:45:42 -0500
commit46f900c065f65013ae58a97f3b991a7e0c5ab669 (patch)
treebfa940b2425bdeb5444cec377eb84ebd15109ba4 /sim/common/Make-common.in
parent8fc48b79618af335d6cea1d1d149668340298b81 (diff)
downloadgdb-46f900c065f65013ae58a97f3b991a7e0c5ab669.zip
gdb-46f900c065f65013ae58a97f3b991a7e0c5ab669.tar.gz
gdb-46f900c065f65013ae58a97f3b991a7e0c5ab669.tar.bz2
sim: require a C11 compiler
With GDB requiring a C++11 compiler now, this hopefully shouldn't be a big deal. It's been 10 years since C11 came out, so should be plenty of time to upgrade. This will allow us to start cleaning up random header logic and many of our non-standard custom types.
Diffstat (limited to 'sim/common/Make-common.in')
-rw-r--r--sim/common/Make-common.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 21e1d99..6e71930 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -70,6 +70,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
CC = @CC@
+C_DIALECT = @C_DIALECT@
CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
@@ -107,7 +108,7 @@ depcomp = $(SHELL) $(srcroot)/depcomp
# Note that these are overridden by GNU make-specific code below if
# GNU make is used. The overrides implement dependency tracking.
-COMPILE.pre = $(CC)
+COMPILE.pre = $(CC) $(C_DIALECT)
COMPILE.post = -c -o $@
COMPILE = $(COMPILE.pre) $(ALL_CFLAGS) $(COMPILE.post)
POSTCOMPILE = @true