Compare commits

...

2 Commits

Author SHA1 Message Date
Vincent Stumpf
6923b0da57 Merge remote-tracking branch 'upstream/master' into upgrade/c++14 2023-02-09 20:11:50 -08:00
Vincent Stumpf
b1fd28b3a6 Upgrade to c++14 2023-02-08 22:21:56 -08:00
3 changed files with 9 additions and 9 deletions

View File

@ -35,7 +35,7 @@ project( rAthena )
if( CYGWIN ) if( CYGWIN )
unset( WIN32 ) unset( WIN32 )
endif() endif()
set(CMAKE_CXX_STANDARD 11) # C++11... set(CMAKE_CXX_STANDARD 14) # C++14...
set(CMAKE_CXX_STANDARD_REQUIRED ON) #...is required... set(CMAKE_CXX_STANDARD_REQUIRED ON) #...is required...
#set(CMAKE_CXX_EXTENSIONS OFF) #...without compiler extensions like gnu++11 #set(CMAKE_CXX_EXTENSIONS OFF) #...without compiler extensions like gnu++11

8
configure vendored
View File

@ -4538,9 +4538,9 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
CFLAGS="$CFLAGS -pipe -ffast-math -Wall" CFLAGS="$CFLAGS -pipe -ffast-math -Wall"
CPPFLAGS="$CPPFLAGS -I../common" CPPFLAGS="$CPPFLAGS -I../common"
CXXFLAGS="$CXXFLAGS -std=c++11" CXXFLAGS="$CXXFLAGS -std=c++14"
#CXXFLAGS="$CXXFLAGS -std=gnu++11" #CXXFLAGS="$CXXFLAGS -std=gnu++14"
CXXFLAG_CLEARS="-std=c++11" CXXFLAG_CLEARS="-std=c++14"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
@ -7109,7 +7109,7 @@ else
$as_echo "no" >&6; } $as_echo "no" >&6; }
fi fi
CXXFLAG_CLEARS="-std=c++11 $CPPFLAGS" CXXFLAG_CLEARS="-std=c++14 $CPPFLAGS"
CFLAGS="$OPT_LTO $CFLAGS" CFLAGS="$OPT_LTO $CFLAGS"
CFLAGS_AR="$OPT_LTO_AR $CFLAGS" CFLAGS_AR="$OPT_LTO_AR $CFLAGS"

View File

@ -483,9 +483,9 @@ AC_LANG([C++])
CFLAGS="$CFLAGS -pipe -ffast-math -Wall" CFLAGS="$CFLAGS -pipe -ffast-math -Wall"
CPPFLAGS="$CPPFLAGS -I../common" CPPFLAGS="$CPPFLAGS -I../common"
CXXFLAGS="$CXXFLAGS -std=c++11" CXXFLAGS="$CXXFLAGS -std=c++14"
#CXXFLAGS="$CXXFLAGS -std=gnu++11" #CXXFLAGS="$CXXFLAGS -std=gnu++14"
CXXFLAG_CLEARS="-std=c++11" CXXFLAG_CLEARS="-std=c++14"
AC_C_BIGENDIAN( AC_C_BIGENDIAN(
[AC_MSG_ERROR([[bigendian is not supported... stopping]])], [AC_MSG_ERROR([[bigendian is not supported... stopping]])],
@ -1355,7 +1355,7 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
CXXFLAG_CLEARS="-std=c++11 $CPPFLAGS" CXXFLAG_CLEARS="-std=c++14 $CPPFLAGS"
CFLAGS="$OPT_LTO $CFLAGS" CFLAGS="$OPT_LTO $CFLAGS"
CFLAGS_AR="$OPT_LTO_AR $CFLAGS" CFLAGS_AR="$OPT_LTO_AR $CFLAGS"
AC_SUBST([CFLAGS_AR]) AC_SUBST([CFLAGS_AR])