mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
(svn r27606) -Change/fix: GCC6 defaults to C++14, but our configure limits it to C++0x just because we want to use features from C++0x (which are also in C++14), so use the C++ standard that's the GCC6 default
This commit is contained in:
parent
ac6312d33c
commit
e956422f48
@ -1380,7 +1380,7 @@ make_compiler_cflags() {
|
|||||||
flags="$flags -Wnon-virtual-dtor"
|
flags="$flags -Wnon-virtual-dtor"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $cc_version -ge 43 ]; then
|
if [ $cc_version -ge 43 ] && [ $cc_version -lt 60 ]; then
|
||||||
# Use gnu++0x mode so static_assert() is available.
|
# Use gnu++0x mode so static_assert() is available.
|
||||||
# Don't use c++0x, it breaks mingw (with gcc 4.4.0).
|
# Don't use c++0x, it breaks mingw (with gcc 4.4.0).
|
||||||
cxxflags="$cxxflags -std=gnu++0x"
|
cxxflags="$cxxflags -std=gnu++0x"
|
||||||
@ -1404,7 +1404,7 @@ make_compiler_cflags() {
|
|||||||
if [ $cc_version -ge 60 ]; then
|
if [ $cc_version -ge 60 ]; then
|
||||||
# -flifetime-dse=2 (default since GCC 6) doesn't play
|
# -flifetime-dse=2 (default since GCC 6) doesn't play
|
||||||
# well with our custom pool item allocator
|
# well with our custom pool item allocator
|
||||||
cxxflags="$cxxflags -flifetime-dse=1"
|
cxxflags="$cxxflags -flifetime-dse=1 -std=gnu++14"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$enable_lto" != "0" ]; then
|
if [ "$enable_lto" != "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user