diff --git a/common.gypi b/common.gypi index 7c9305aa2d9..0f156f57672 100644 --- a/common.gypi +++ b/common.gypi @@ -50,7 +50,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.1', + 'v8_embedder_string': '-node.2', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/include/v8config.h b/deps/v8/include/v8config.h index b7aeeade6b8..3063b20885c 100644 --- a/deps/v8/include/v8config.h +++ b/deps/v8/include/v8config.h @@ -402,6 +402,7 @@ path. Add it with -I to the command line || ((defined(__AARCH64EL__) || defined(_M_ARM64)) /* arm64, but ... */ \ && !defined(_WIN32))) /* not on windows */ \ && !defined(COMPONENT_BUILD) /* no component build */\ + && !defined(V8_DISABLE_PRESERVE_MOST) /* embedder opt-out */ \ && __clang_major__ >= 17 /* clang >= 17 */ # define V8_HAS_ATTRIBUTE_PRESERVE_MOST (__has_attribute(preserve_most)) #endif