lang/node: Fix build with llmv-19 on arm64

with help from robert@, ok jca@
This commit is contained in:
volker
2025-02-11 15:33:00 +00:00
parent 2290707e5a
commit a9c3f567fb
2 changed files with 16 additions and 7 deletions
+1
View File
@@ -7,6 +7,7 @@ COMMENT = JavaScript runtime built on Chrome's V8 JavaScript engine
NODE_VERSION = v22.13.1
PLEDGE_VER = 1.1.3
REVISION = 0
DISTFILES = ${DISTNAME}-headers.tar.gz \
${DISTNAME}.tar.xz
DISTFILES.pledge = node-pledge-{}${PLEDGE_VER}.tar.gz
@@ -19,12 +19,10 @@ Index: deps/v8/include/v8config.h
|| defined(V8_TARGET_OS_MACOS) \
|| defined(V8_TARGET_OS_WIN) \
|| defined(V8_TARGET_OS_CHROMEOS)
@@ -218,6 +222,16 @@ path. Add it with -I<path> to the command line
#ifdef V8_OS_LINUX
@@ -220,6 +224,16 @@ path. Add it with -I<path> to the command line
# define V8_TARGET_OS_LINUX
+#endif
+
#endif
+#ifdef V8_OS_OPENBSD
+# define V8_TARGET_OS_OPENBSD
+# define V8_TARGET_OS_BSD
@@ -33,6 +31,16 @@ Index: deps/v8/include/v8config.h
+#ifdef V8_OS_FREEBSD
+# define V8_TARGET_OS_OPENBSD
+# define V8_TARGET_OS_BSD
#endif
+#endif
+
#ifdef V8_OS_MACOS
# define V8_TARGET_OS_MACOS
#endif
@@ -366,6 +380,7 @@ path. Add it with -I<path> to the command line
#if (defined(_M_X64) || defined(__x86_64__) /* x64 (everywhere) */ \
|| ((defined(__AARCH64EL__) || defined(_M_ARM64)) /* arm64, but ... */ \
&& !defined(_WIN32))) /* not on windows */ \
+ && !defined(__OpenBSD__) /* not on OpenBSD */ \
&& !defined(COMPONENT_BUILD) /* no component build */\
&& __clang_major__ >= 17 /* clang >= 17 */
# define V8_HAS_ATTRIBUTE_PRESERVE_MOST (__has_attribute(preserve_most))