Move Linux builds to use C++17 by default.

This commit is contained in:
Stephen Anthony 2020-11-28 10:48:00 -03:30
parent 9ac459bf71
commit fe2b4d630e
6 changed files with 11 additions and 9 deletions

View File

@ -30,6 +30,8 @@
* Fixed autofire bug for trackball controllers.
* Codebase now uses C++17 features.
-Have fun!

View File

@ -48,11 +48,11 @@ endif
CXXFLAGS+= -Wall -Wextra -Wno-unused-parameter
ifdef HAVE_GCC
CXXFLAGS+= -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++14
CXXFLAGS+= -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17
endif
ifdef HAVE_CLANG
CXXFLAGS+= -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++14
CXXFLAGS+= -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17
endif
ifdef CLANG_WARNINGS

2
configure vendored
View File

@ -385,7 +385,7 @@ else
fi
for compiler in $compilers; do
if test_compiler "$compiler -std=c++14"; then
if test_compiler "$compiler -std=c++17"; then
CXX=$compiler
echo $CXX
break

View File

@ -260,7 +260,7 @@
<h2><b><a name="Features">Features</a></b></h2>
<ul>
<li>High speed emulation using optimized C++14 code</li>
<li>High speed emulation using optimized C++17 code</li>
<li>Supports high quality TIA emulation using the cycle-exact TIA core from
<a href="https://github.com/6502ts/6502.ts">6502.ts</a> by
Christian Speckner</li>
@ -350,7 +350,7 @@
<li>OpenGL capable video card</li>
<li>Other architectures (MIPS, PPC, PPC64, etc.) have been confirmed to work,
but aren't as well tested as i386/x86_64</li>
<li>GNU g++ v/6 or Clang v/3.9 (with C++14 support) and the make utility are required for compiling the Stella source code</li>
<li>GNU g++ v/7 or Clang v/5 (with C++17 support) and the make utility are required for compiling the Stella source code</li>
</ul>
<p>

View File

@ -43,7 +43,7 @@ TARGET_NAME = stella
ifeq (,$(findstring msvc,$(platform)))
CXXFLAGS += -std=c++14 -fno-rtti
CXXFLAGS += -std=c++17 -fno-rtti
LIBS := -lm
else
LIBS :=
@ -282,8 +282,8 @@ else ifneq (,$(filter $(platform), ngc wii wiiu))
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
STATIC_LINKING = 1
CXXFLAGS += $(PTHREAD_FLAGS) -std=c++14
LDFLAGS += $(PTHREAD_FLAGS) -std=c++14
CXXFLAGS += $(PTHREAD_FLAGS) -std=c++17
LDFLAGS += $(PTHREAD_FLAGS) -std=c++17
# Genode
else ifeq ($(platform), genode)

View File

@ -14,6 +14,6 @@ endif
include $(CLEAR_VARS)
LOCAL_MODULE := retro
LOCAL_SRC_FILES := $(SOURCES_CXX) $(SOURCES_C)
LOCAL_CXXFLAGS := $(COREFLAGS) -std=c++14
LOCAL_CXXFLAGS := $(COREFLAGS) -std=c++17
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/libretro/link.T
include $(BUILD_SHARED_LIBRARY)