From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 924F115ACFB for ; Thu, 27 Apr 2023 22:01:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A912CE0937; Thu, 27 Apr 2023 22:01:32 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8AB90E0936 for ; Thu, 27 Apr 2023 22:01:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 97A0833BE6D for ; Thu, 27 Apr 2023 22:01:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E5AE5A4C for ; Thu, 27 Apr 2023 22:01:29 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1682632886.8a0b80a318c74dd0765d2f0b630140863d8c2fd2.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/simdjson/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/simdjson/metadata.xml dev-libs/simdjson/simdjson-3.1.7-r1.ebuild dev-libs/simdjson/simdjson-3.1.7.ebuild X-VCS-Directories: dev-libs/simdjson/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 8a0b80a318c74dd0765d2f0b630140863d8c2fd2 X-VCS-Branch: master Date: Thu, 27 Apr 2023 22:01:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 13746f16-f375-4462-a626-7c02efb8abbc X-Archives-Hash: 8f30657aaca89e77544afe984dd14732 commit: 8a0b80a318c74dd0765d2f0b630140863d8c2fd2 Author: Patrick McLean gentoo org> AuthorDate: Thu Apr 27 21:57:09 2023 +0000 Commit: Patrick McLean gentoo org> CommitDate: Thu Apr 27 22:01:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a0b80a3 dev-libs/simdjson: Add all-impls USE flag, and enable by default By default upstream only compiles and enables the "optimial" implementation for the current system. This is nice for some cases, however for a distro package this is not ideal. Signed-off-by: Patrick McLean gentoo.org> dev-libs/simdjson/metadata.xml | 1 + ...djson-3.1.7.ebuild => simdjson-3.1.7-r1.ebuild} | 33 ++++++++++++++++------ 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/dev-libs/simdjson/metadata.xml b/dev-libs/simdjson/metadata.xml index 0bd99c992917..d541fa2ee4a1 100644 --- a/dev-libs/simdjson/metadata.xml +++ b/dev-libs/simdjson/metadata.xml @@ -7,5 +7,6 @@ Build and install extra command line tools + Enable all implementations rather than only onem diff --git a/dev-libs/simdjson/simdjson-3.1.7.ebuild b/dev-libs/simdjson/simdjson-3.1.7-r1.ebuild similarity index 73% rename from dev-libs/simdjson/simdjson-3.1.7.ebuild rename to dev-libs/simdjson/simdjson-3.1.7-r1.ebuild index 433f9a71935e..7900f6af3b7b 100644 --- a/dev-libs/simdjson/simdjson-3.1.7.ebuild +++ b/dev-libs/simdjson/simdjson-3.1.7-r1.ebuild @@ -19,7 +19,7 @@ SRC_URI=" LICENSE="Apache-2.0 Boost-1.0 BSD MIT" SLOT="0/15" KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" -IUSE="test tools" +IUSE="+all-impls test tools" BDEPEND=" sys-apps/file @@ -63,23 +63,38 @@ src_prepare() { src_configure() { local mycmakeargs=( - -DSIMDJSON_ENABLE_THREADS=ON + -DSIMDJSON_ENABLE_THREADS:BOOL=ON ) use test && mycmakeargs+=( - -DSIMDJSON_TESTS=ON + -DSIMDJSON_TESTS:BOOL=ON ) if use tools; then mycmakeargs+=( - -DSIMDJSON_DEVELOPER_MODE=ON - -DSIMDJSON_ALLOW_DOWNLOADS=OFF - -DSIMDJSON_GOOGLE_BENCHMARKS=OFF - -DSIMDJSON_COMPETITION=OFF - -DSIMDJSON_TOOLS=ON + -DSIMDJSON_DEVELOPER_MODE:BOOL=ON + -DSIMDJSON_ALLOW_DOWNLOADS:BOOL=OFF + -DSIMDJSON_GOOGLE_BENCHMARKS:BOOL=OFF + -DSIMDJSON_COMPETITION:BOOL=OFF + -DSIMDJSON_TOOLS:BOOL=ON ) elif ! use test; then mycmakeargs+=( - -DSIMDJSON_DEVELOPER_MODE=OFF + -DSIMDJSON_DEVELOPER_MODELBOOL=OFF + ) + fi + + if use all-impls; then + local -a impls=("fallback") + if use amd64 || use x86; then + impls+=("westmere" "haswell" "icelake") + elif use arm64; then + impls+=("arm64") + elif use ppc64; then + impls+=("ppc64") + fi + + mycmakeargs+=( + -DSIMDJSON_IMPLEMENTATION:STRING=$(printf '%s;' "${impls[@]}") ) fi