mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
maint/build ~ improve cargo make
'util' from generic to platform specific
This commit is contained in:
parent
c6ca0437c0
commit
82f825c649
1 changed files with 6 additions and 1 deletions
|
@ -284,7 +284,12 @@ script = [
|
||||||
package_options = get_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS
|
package_options = get_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS
|
||||||
if is_empty "${package_options}"
|
if is_empty "${package_options}"
|
||||||
show_utils = get_env CARGO_MAKE_VAR_SHOW_UTILS
|
show_utils = get_env CARGO_MAKE_VAR_SHOW_UTILS
|
||||||
result = exec "${show_utils}"
|
features = get_env CARGO_MAKE_VAR_BUILD_TEST_FEATURES
|
||||||
|
if not is_empty "${features}"
|
||||||
|
result = exec "${show_utils}" --features "${features}"
|
||||||
|
else
|
||||||
|
result = exec "${show_utils}"
|
||||||
|
endif
|
||||||
set_env CARGO_MAKE_VAR_UTILS ${result.stdout}
|
set_env CARGO_MAKE_VAR_UTILS ${result.stdout}
|
||||||
utils = array %{result.stdout}
|
utils = array %{result.stdout}
|
||||||
for util in ${utils}
|
for util in ${utils}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue