Skip to content

Commit 056bf6d

Browse files
joaocgreisnodejs-ci
authored andcommitted
deps: make v8.h compatible with VS2015
There is a bug in the most recent version of VS2015 that affects v8.h and therefore prevents compilation of addons. Refs: https://stackoverflow.com/q/38378693 PR-URL: nodejs/node#30020 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 1826d56 commit 056bf6d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
# Reset this number to 0 on major V8 upgrades.
4141
# Increment by one for each non-official patch applied to deps/v8.
42-
'v8_embedder_string': '-node.7',
42+
'v8_embedder_string': '-node.8',
4343

4444
##### V8 defaults for Node.js #####
4545

deps/v8/include/v8.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,9 +1758,11 @@ class V8_EXPORT ScriptCompiler {
17581758
public:
17591759
enum Encoding { ONE_BYTE, TWO_BYTE, UTF8 };
17601760

1761+
#if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
17611762
V8_DEPRECATE_SOON(
17621763
"This class takes ownership of source_stream, so use the constructor "
17631764
"taking a unique_ptr to make these semantics clearer")
1765+
#endif
17641766
StreamedSource(ExternalSourceStream* source_stream, Encoding encoding);
17651767
StreamedSource(std::unique_ptr<ExternalSourceStream> source_stream,
17661768
Encoding encoding);

0 commit comments

Comments
 (0)