Skip to content

Commit 25bb462

Browse files
StefanStojanovicaduh95
authored andcommitted
deps: define V8_PRESERVE_MOST as no-op on Windows
It's causing linker errors with node.lib in node-gyp and potentially breaks other 3rd party tools PR-URL: #56238 Refs: #55784 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0d08756 commit 25bb462

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

common.gypi

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

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.11',
39+
'v8_embedder_string': '-node.12',
4040

4141
##### V8 defaults for Node.js #####
4242

deps/v8/include/v8config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,15 @@ path. Add it with -I<path> to the command line
581581
// functions.
582582
// Use like:
583583
// V8_NOINLINE V8_PRESERVE_MOST void UnlikelyMethod();
584+
#if V8_OS_WIN
585+
# define V8_PRESERVE_MOST
586+
#else
584587
#if V8_HAS_ATTRIBUTE_PRESERVE_MOST
585588
# define V8_PRESERVE_MOST __attribute__((preserve_most))
586589
#else
587590
# define V8_PRESERVE_MOST /* NOT SUPPORTED */
588591
#endif
592+
#endif
589593

590594

591595
// A macro (V8_DEPRECATED) to mark classes or functions as deprecated.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy