git: dae4cc5e2623 - 2023Q4 - www/node18: fix build on powerpc64*

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 16 Oct 2023 21:36:38 UTC
The branch 2023Q4 has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dae4cc5e262399593fea97c89bd0fdcbef49386d

commit dae4cc5e262399593fea97c89bd0fdcbef49386d
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-10-15 10:56:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-10-16 21:28:57 +0000

    www/node18: fix build on powerpc64*
    
    In file included from ../deps/v8/src/compiler/backend/ppc/code-generator-ppc.cc:6:
    In file included from ../deps/v8/src/codegen/assembler-inl.h:8:
    In file included from ../deps/v8/src/codegen/assembler.h:46:
    In file included from ../deps/v8/src/codegen/external-reference.h:9:
    In file included from ../deps/v8/src/runtime/runtime.h:11:
    ../deps/v8/src/base/bit-field.h:43:29: error: integer value 31 is outside the valid range of values [0, 3] for the enumeration type 'AddressingMode' [-Wenum-constexpr-conversion]
      static constexpr T kMax = static_cast<T>(kNumValues - 1);
    
    (cherry picked from commit d59ea56e40877edaaeb8a04eba0f539f9d3621d2)
---
 www/node18/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/node18/Makefile b/www/node18/Makefile
index be5e33d67d24..f314b1133235 100644
--- a/www/node18/Makefile
+++ b/www/node18/Makefile
@@ -75,7 +75,7 @@ NLS_LIB_DEPENDS=	libicui18n.so:devel/icu
 
 .include <bsd.port.pre.mk>
 
-.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 && ${ARCH} == aarch64
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 && (${ARCH} == aarch64 || ${ARCH:Mpowerpc64*})
 CXXFLAGS+=	-Wno-error=enum-constexpr-conversion
 .endif