0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 08:11:52 +00:00

use C++ standard c++14

This commit is contained in:
Stefan Siegl 2020-10-02 09:04:35 +02:00
parent 6f08b4da1b
commit 0eec3bd764
No known key found for this signature in database
GPG Key ID: 73942AF5642F3DDA

View File

@ -39,11 +39,11 @@ if test "$PHP_V8JS" != "no"; then
AC_CACHE_CHECK(for C standard version, ac_cv_v8_cstd, [
ac_cv_v8_cstd="c++11"
ac_cv_v8_cstd="c++14"
old_CPPFLAGS=$CPPFLAGS
AC_LANG_PUSH([C++])
CPPFLAGS="-std="$ac_cv_v8_cstd
AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[],[ac_cv_v8_cstd="c++0x"],[])
AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[],[ac_cv_v8_cstd="c++1y"],[])
AC_LANG_POP([C++])
CPPFLAGS=$old_CPPFLAGS
]);