summaryrefslogtreecommitdiff
path: root/libcody
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-12-15 13:34:26 -0800
committerNathan Sidwell <nathan@acm.org>2020-12-15 13:48:15 -0800
commit4f0c800ba6091e77228c7ef73eb5efebc45559d7 (patch)
tree9fc676e78e7b41caf8036947ef012f0087adf32f /libcody
parent3d5e3eb4074a11bad08df3f5a22e0466c16c6a66 (diff)
downloadgcc-4f0c800ba6091e77228c7ef73eb5efebc45559d7.tar.gz
libcody: Work with older gccs
Older GCCs don't have all the exciting options we have now. let's just turn them off. libcody/ * Makefile.in: Disable some flags.
Diffstat (limited to 'libcody')
-rw-r--r--libcody/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcody/Makefile.in b/libcody/Makefile.in
index 7b8a6418027..4b457adc3a4 100644
--- a/libcody/Makefile.in
+++ b/libcody/Makefile.in
@@ -66,7 +66,10 @@ ifeq ($(filter -fdebug-prefix-map=%,$(CXXOPTS)),)
CXXOPTS += -fdebug-prefix-map=${srcdir}/=
endif
# Warning options
-CXXOPTS += -W -Wall -Woverloaded-virtual -Wshadow
+CXXOPTS += -W -Wall
+ifeq (no,)
+# just turn off for now
+CXXOPTS += -Woverloaded-virtual -Wshadow
CXXOPTS += -Wno-invalid-offsetof -Wno-unused-variable
CXXOPTS += -Wno-missing-field-initializers
# Diagnostic options, look at controlling terminal so that piping
@@ -76,6 +79,7 @@ ifneq (,$(MLEN))
CXXOPTS += -fmessage-length=$(MLEN)
endif
CXXOPTS += -fdiagnostics-color=always -fno-diagnostics-show-option
+endif
else
ifeq ($(notdir $(firstword $(CXX))),clang++)
CXXOPTS += -fno-stack-protector -fno-threadsafe-statics