mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 04:23:16 -04:00
crystal-utils.eclass: add crystal_build function
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -24,7 +24,7 @@ esac
|
||||
if [[ ! ${_CRYSTAL_UTILS_ECLASS} ]]; then
|
||||
_CRYSTAL_UTILS_ECLASS=1
|
||||
|
||||
inherit edo flag-o-matic
|
||||
inherit edo flag-o-matic multiprocessing
|
||||
|
||||
# @ECLASS_VARIABLE: CRYSTAL_DEPS
|
||||
# @OUTPUT_VARIABLE
|
||||
@@ -151,4 +151,17 @@ eshards() {
|
||||
edo shards "${args[@]}" "${@}"
|
||||
}
|
||||
|
||||
# @FUNCTION: crystal_build
|
||||
# @USAGE: <args>...
|
||||
# @DESCRIPTION:
|
||||
# Function for building a target. All arguments are passed to crystal.
|
||||
crystal_build() {
|
||||
local build_args=(
|
||||
--threads=$(makeopts_jobs)
|
||||
--verbose
|
||||
)
|
||||
|
||||
ecrystal build "${build_args[@]}" "${@}"
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user