Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2023 18:47:43 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 316a89ed4e72 - main - games/punchy: unbreak build with clang 16 on aarch64
Message-ID:  <202307021847.362IlhFU084083@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

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

commit 316a89ed4e72fc2c5c49589c0c797ef535ac11af
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-02 18:41:19 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-02 18:46:51 +0000

    games/punchy: unbreak build with clang 16 on aarch64
    
    In file included from cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction-selector.cc:5:
    In file included from cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction-selector.h:12:
    In file included from cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction-scheduler.h:10:
    In file included from cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction.h:13:
    In file included from cargo-crates/v8-0.47.1/v8/src/codegen/external-reference.h:9:
    In file included from cargo-crates/v8-0.47.1/v8/src/runtime/runtime.h:11:
    cargo-crates/v8-0.47.1/v8/src/base/bit-field.h:43:29: error: integer value 31 is outside the valid range of values [0, 15] for the enumeration type 'AddressingMode' [-Wenum-constexpr-conversion]
      static constexpr T kMax = static_cast<T>(kNumValues - 1);
                                ^
    
    Reported by:    pkg-fallout
---
 games/punchy/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/games/punchy/Makefile b/games/punchy/Makefile
index 17041020b6e4..8e1fe489fc11 100644
--- a/games/punchy/Makefile
+++ b/games/punchy/Makefile
@@ -24,10 +24,11 @@ PORTDATA=	*
 
 # Bundled v8
 BUILD_DEPENDS+=	gn:devel/gn
-USES+=		ninja:build python:build
+USES+=		compiler ninja:build python:build
 BINARY_ALIAS+=	python=${PYTHON_CMD}
 CARGO_ENV+=	V8_FROM_SOURCE=1 CLANG_BASE_PATH="/usr" GN_ARGS='${GN_ARGS}'
 GN_ARGS+=	use_custom_libcxx=false
+CXXFLAGS+=	${${ARCH} == aarch64 && ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160:?-Wno-enum-constexpr-conversion:}
 
 post-patch:
 # Search assets under PREFIX instead of current directory



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307021847.362IlhFU084083>