util: update 'build-gnu.sh' to use CARGO_TARGET_DIR

This commit is contained in:
Zachary Goff-Hodges 2025-02-04 15:53:07 -08:00 committed by Dorian Péron
parent 1f2bd34ef0
commit 43036e2c7b

View file

@ -84,7 +84,11 @@ echo "path_GNU='${path_GNU}'"
###
if [[ ! -z "$CARGO_TARGET_DIR" ]]; then
UU_BUILD_DIR="${CARGO_TARGET_DIR}/${UU_MAKE_PROFILE}"
else
UU_BUILD_DIR="${path_UUTILS}/target/${UU_MAKE_PROFILE}"
fi
echo "UU_BUILD_DIR='${UU_BUILD_DIR}'"
cd "${path_UUTILS}" && echo "[ pwd:'${PWD}' ]"