Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 157f3b9

Browse files
committed
Add compiler option to track even soon to be deprecated v8 apis
1 parent a7b54c0 commit 157f3b9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ include_directories(/usr/local/include/php/main)
1111
include_directories(/usr/local/include/php/sapi)
1212

1313
add_definitions(-DV8_DEPRECATION_WARNINGS)
14+
add_definitions(-DV8_IMMINENT_DEPRECATION_WARNINGS)
1415

1516
if(EXISTS "${CMAKE_SOURCE_DIR}/config.h")
1617
add_definitions(-DHAVE_CONFIG_H)

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ if test "$PHP_V8" != "no"; then
144144
ac_cv_suppress_register_warnings_flag="-Wno-deprecated-register"
145145

146146
AC_DEFINE([V8_DEPRECATION_WARNINGS], [1], [Enable compiler warnings when using V8_DEPRECATED apis.])
147+
AC_DEFINE([V8_IMMINENT_DEPRECATION_WARNINGS], [1], [Enable compiler warnings to make it easier to see what v8 apis will be deprecated (V8_DEPRECATED) soon.])
147148

148149
AC_LANG_RESTORE
149150
LIBS=$old_LIBS

0 commit comments

Comments
 (0)