mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
crystal-utils.eclass: add CRYSTAL_DEFINES var
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -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[@]}"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user