File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -1404,18 +1404,7 @@ for host in "${ALL_HOSTS[@]}"; do
1404
1404
fi
1405
1405
1406
1406
for product in " ${PRODUCTS[@]} " ; do
1407
- # Check if we should perform this action.
1408
- tmp_product=${product}
1409
- if [[ ${tmp_product} == " libdispatch_static" ]]; then
1410
- tmp_product=libdispatch
1411
- LIBDISPATCH_STATIC_CMAKE_OPTIONS=${LIBDISPATCH_CMAKE_OPTIONS[@]}
1412
- fi
1413
- if [[ ${tmp_product} == " foundation_static" ]]; then
1414
- tmp_product=foundation
1415
- fi
1416
- if ! [[ $( should_execute_action " ${host} -${tmp_product} -build" ) ]]; then
1417
- continue
1418
- fi
1407
+ [[ $( should_execute_action " ${host} -${product/ _static} -build" ) ]] || continue
1419
1408
1420
1409
unset skip_build
1421
1410
source_dir_var=" $( toupper ${product} ) _SOURCE_DIR"
@@ -2627,17 +2616,7 @@ for host in "${ALL_HOSTS[@]}"; do
2627
2616
set_build_options_for_host $host
2628
2617
2629
2618
for product in " ${PRODUCTS[@]} " ; do
2630
- # Check if we should perform this action.
2631
- tmp_product=${product}
2632
- if [[ ${tmp_product} == " libdispatch_static" ]]; then
2633
- tmp_product=libdispatch
2634
- fi
2635
- if [[ ${tmp_product} == " foundation_static" ]]; then
2636
- tmp_product=foundation
2637
- fi
2638
- if ! [[ $( should_execute_action " ${host} -${tmp_product} -install" ) ]]; then
2639
- continue
2640
- fi
2619
+ [[ $( should_execute_action " ${host} -${product/ _static} -install" ) ]] || continue
2641
2620
if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
2642
2621
echo " --install-destdir is required to install products."
2643
2622
exit 1
You can’t perform that action at this time.
0 commit comments