mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/intl: level up c++ runtime std for icu 74 and onwards.
to align with what is required to build icu 74 itself. Close GH-13422.
This commit is contained in:
parent
211dc60044
commit
037855fcd3
1 changed files with 10 additions and 1 deletions
|
@ -80,7 +80,16 @@ if test "$PHP_INTL" != "no"; then
|
|||
breakiterator/codepointiterator_methods.cpp"
|
||||
|
||||
PHP_REQUIRE_CXX()
|
||||
PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX)
|
||||
|
||||
AC_MSG_CHECKING([if intl requires -std=gnu++17])
|
||||
AS_IF([test "$PKG_CONFIG icu-uc --atleast-version=74"],[
|
||||
AC_MSG_RESULT([yes])
|
||||
PHP_CXX_COMPILE_STDCXX(17, mandatory, PHP_INTL_STDCXX)
|
||||
],[
|
||||
AC_MSG_RESULT([no])
|
||||
PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX)
|
||||
])
|
||||
|
||||
PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS"
|
||||
case $host_alias in
|
||||
*cygwin*) PHP_INTL_CXX_FLAGS="$PHP_INTL_CXX_FLAGS -D_POSIX_C_SOURCE=200809L"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue