Skip to content

Commit adef238

Browse files
committed
Sync cache variable names for -fwrapv flag check
1 parent bb1beb9 commit adef238

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmake/cmake/platforms/Windows.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
197197
set(HAVE_VASPRINTF FALSE)
198198
set(HAVE_WMMINTRIN_H TRUE)
199199
set(HAVE_WS2TCPIP_H TRUE)
200+
set(PHP_EXT_DATE_HAS_FWRAP FALSE)
200201
set(PHP_EXT_GD_HAS_FLOORF TRUE)
201202
set(PHP_EXT_OPCACHE_HAS_FLOOR TRUE)
202203
set(PHP_HAS_CREATEPROCESS TRUE)

cmake/ext/date/lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ target_compile_definitions(
8282
HAVE_STRTOLL
8383
)
8484

85-
check_compiler_flag(C -fwrapv _timelib_HAVE_FWRAPV)
86-
if(_timelib_HAVE_FWRAPV)
85+
check_compiler_flag(C -fwrapv PHP_EXT_DATE_HAS_FWRAP)
86+
if(PHP_EXT_DATE_HAS_FWRAP)
8787
set_source_files_properties(
8888
${timelibSources}
8989
TARGET_DIRECTORY ${TIMELIB_TARGET}

0 commit comments

Comments
 (0)