Skip to content

Commit

Permalink
deps: define V8_PRESERVE_MOST as no-op on Windows
Browse files Browse the repository at this point in the history
It's causing linker errors with node.lib in node-gyp and potentially
breaks other 3rd party tools
  • Loading branch information
StefanStojanovic committed Dec 12, 2024
1 parent 33f0f16 commit 2e3ef0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

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

##### V8 defaults for Node.js #####

Expand Down
4 changes: 4 additions & 0 deletions deps/v8/include/v8config.h
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,15 @@ path. Add it with -I<path> to the command line
// functions.
// Use like:
// V8_NOINLINE V8_PRESERVE_MOST void UnlikelyMethod();
#if V8_OS_WIN
# define V8_PRESERVE_MOST
#else
#if V8_HAS_ATTRIBUTE_PRESERVE_MOST
# define V8_PRESERVE_MOST __attribute__((preserve_most))
#else
# define V8_PRESERVE_MOST /* NOT SUPPORTED */
#endif
#endif


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

0 comments on commit 2e3ef0c

Please sign in to comment.