From: <sv...@op...> - 2024-08-12 13:25:21
|
Author: manx Date: Mon Aug 12 15:25:09 2024 New Revision: 21391 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21391 Log: [Imp] build: Makefile: Add back ANCIENT=1 option to support older compilers with missing command line options. Modified: trunk/OpenMPT/Makefile trunk/OpenMPT/build/make/warnings-clang.mk Modified: trunk/OpenMPT/Makefile ============================================================================== --- trunk/OpenMPT/Makefile Mon Aug 12 15:06:03 2024 (r21390) +++ trunk/OpenMPT/Makefile Mon Aug 12 15:25:09 2024 (r21391) @@ -66,6 +66,7 @@ # ONLY_TEST=0 Only build the test suite. # STRICT=0 Treat warnings as errors. # MODERN=0 Pass more modern compiler options. +# ANCIENT=0 Pass compiler options compatible with older versions. # NATIVE=0 Optimize for system CPU. # STDCXX=c++17 C++ standard version (default depends on compiler) # STDC=c17 C standard version (default depends on compiler) Modified: trunk/OpenMPT/build/make/warnings-clang.mk ============================================================================== --- trunk/OpenMPT/build/make/warnings-clang.mk Mon Aug 12 15:06:03 2024 (r21390) +++ trunk/OpenMPT/build/make/warnings-clang.mk Mon Aug 12 15:25:09 2024 (r21391) @@ -2,8 +2,13 @@ CXXFLAGS_WARNINGS += -Wcast-align -Wcast-qual -Wdouble-promotion -Wfloat-conversion -Wmissing-prototypes -Wshift-count-negative -Wshift-count-overflow -Wshift-op-parentheses -Wshift-overflow -Wshift-sign-overflow -Wundef CFLAGS_WARNINGS += -Wcast-align -Wcast-qual -Wdouble-promotion -Wfloat-conversion -Wmissing-prototypes -Wshift-count-negative -Wshift-count-overflow -Wshift-op-parentheses -Wshift-overflow -Wshift-sign-overflow -Wundef -CXXFLAGS_WARNINGS += -Wdeprecated -Wexit-time-destructors -Wextra-semi -Wframe-larger-than=16000 -Wglobal-constructors -Wimplicit-fallthrough -Wmissing-declarations -Wnon-virtual-dtor -Wreserved-id-macro -CFLAGS_WARNINGS += -Wframe-larger-than=4000 +CXXFLAGS_WARNINGS += -Wdeprecated -Wexit-time-destructors -Wextra-semi -Wglobal-constructors -Wimplicit-fallthrough -Wmissing-declarations -Wnon-virtual-dtor -Wreserved-id-macro +CFLAGS_WARNINGS += + +ifneq ($(ANCIENT),1) +CXXFLAGS_WARNINGS += -Wframe-larger-than=16000 +CFLAGS_WARNINGS += -Wframe-larger-than=4000 +endif #CXXFLAGS_WARNINGS += -Wfloat-equal #CXXFLAGS_WARNINGS += -Wdocumentation @@ -21,10 +26,14 @@ CFLAGS_SILENT += -Wno-cast-qual CFLAGS_SILENT += -Wno-double-promotion CFLAGS_SILENT += -Wno-float-conversion +ifneq ($(ANCIENT),1) CFLAGS_SILENT += -Wno-frame-larger-than +endif CFLAGS_SILENT += -Wno-missing-prototypes CFLAGS_SILENT += -Wno-sign-compare +ifneq ($(ANCIENT),1) CFLAGS_SILENT += -Wno-unused-but-set-variable +endif CFLAGS_SILENT += -Wno-unused-function CFLAGS_SILENT += -Wno-unused-parameter CFLAGS_SILENT += -Wno-unused-variable |