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 3B9E515806E for ; Sun, 21 May 2023 16:27:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72957E0826; Sun, 21 May 2023 16:27:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5815DE0826 for ; Sun, 21 May 2023 16:27:24 +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 6F09B340CDE for ; Sun, 21 May 2023 16:27:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD56E8E4 for ; Sun, 21 May 2023 16:27:21 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1684685995.e75c73870af006070292d631e1fe4e7490b0a5ec.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/crystal-utils.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: e75c73870af006070292d631e1fe4e7490b0a5ec X-VCS-Branch: dev Date: Sun, 21 May 2023 16:27:21 +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: 1b3c09a4-75ce-4613-96a4-15ddaf02ebbd X-Archives-Hash: 37826021a9925979a4e89c788e462082 commit: e75c73870af006070292d631e1fe4e7490b0a5ec Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sun May 21 16:17:52 2023 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Sun May 21 16:19:55 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e75c7387 crystal-utils.eclass: add CRYSTAL_DEFINES var Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/crystal-utils.eclass | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/eclass/crystal-utils.eclass b/eclass/crystal-utils.eclass index 8456c5af6..57325a993 100644 --- a/eclass/crystal-utils.eclass +++ b/eclass/crystal-utils.eclass @@ -48,6 +48,11 @@ SHARDS_DEPS=" ) " +# @ECLASS_VARIABLE: CRYSTAL_DEFINES +# @DEFAULT_UNSET +# @DESCRIPTION: +# List of compile-time defines. Used by 'crystal build' and 'crystal docs'. + # @FUNCTION: _crystal_get_colors_opt # @INTERNAL # @RETURN: "--no-color" if colors should be disabled, empty string otherwise @@ -76,15 +81,6 @@ _crystal_get_debug_opt() { # mycrystalargs bash array. # # Must be run or ecrystal/eshards will fail. -# -# @CODE -# src_configure() { -# local mycrystalargs=( -# -Dfoo -# ) -# crystal_configure -# } -# @CODE crystal_configure() { debug-print-function ${FUNCNAME} "${@}" @@ -107,6 +103,7 @@ crystal_configure() { $(is-flagq -mcpu && echo "--mcpu=$(get-flag mcpu)") $(is-flagq -mcmodel && echo "--mcmodel=$(get-flag mcmodel)") # TODO: --mattr + "${CRYSTAL_DEFINES[@]}" "${mycrystalargs[@]}" )