mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 12:51:52 +00:00
test compiler for c++17 support
This commit is contained in:
parent
0754d73775
commit
225c8cde63
@ -39,11 +39,15 @@ if test "$PHP_V8JS" != "no"; then
|
||||
|
||||
|
||||
AC_CACHE_CHECK(for C standard version, ac_cv_v8_cstd, [
|
||||
ac_cv_v8_cstd="c++14"
|
||||
ac_cv_v8_cstd="c++17"
|
||||
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++14"
|
||||
CPPFLAGS="-std="$ac_cv_v8_cstd
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[],[ ac_cv_v8_cstd="c++1y" ],[])
|
||||
],[])
|
||||
AC_LANG_POP([C++])
|
||||
CPPFLAGS=$old_CPPFLAGS
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user