Skip to content

Commit cb052e7

Browse files
abby-sergzxxxz
authored andcommitted
Issue 6526 - show warnings about deprecated V8 API
1 parent ccfb633 commit cb052e7

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ endif
5151

5252
GYP_PARAMETERS=host_arch=${HOST_ARCH} OS=${TARGET_OS} target_arch=${ABP_TARGET_ARCH}
5353
ifneq "$(and ${LIBV8_LIB_DIR}, ${LIBV8_INCLUDE_DIR})" ""
54-
GYP_PARAMETERS+= libv8_lib_dir=${LIBV8_LIB_DIR} libv8_include_dir=${LIBV8_INCLUDE_DIR}
54+
GYP_PARAMETERS+= libv8_lib_dir=${LIBV8_LIB_DIR} libv8_include_dir=${LIBV8_INCLUDE_DIR} libv8_show_warnings=${libv8_show_warnings}
5555
else
5656
$(error "V8 directories are not specified")
5757
endif

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,8 @@ You can lint the code using [ESLint](http://eslint.org).
313313
In order to set up ESLint and
314314
[configuration eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/tip/eslint-config-eyeo) you need [Node.js 7 or higher](https://nodejs.org/) and once it is installed please run `npm install` in the repository directory.
315315

316+
In order to learn about the usage of deprecated V8 API please set `libv8_show_warnings` to `"true"` on *nix, e.g.
317+
318+
make libv8_show_warnings="true"
319+
320+
or on Windows add it to `GYP_DEFINES`.

v8.gypi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,14 @@
1515
}]
1616
]
1717
},
18+
'target_defaults': {
19+
'conditions': [[
20+
'libv8_show_warnings=="true"', {
21+
'defines': [
22+
'V8_DEPRECATION_WARNINGS',
23+
'V8_IMMINENT_DEPRECATION_WARNINGS'
24+
]
25+
}
26+
]]
27+
}
1828
}

0 commit comments

Comments
 (0)