Skip to content

Commit 9a12baa

Browse files
committed
Update CARGO_TARGET_DIR
1 parent c6a4bea commit 9a12baa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ui/update-all-references.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ if [[ "$1" == "--help" || "$1" == "-h" ]]; then
1212
echo "usage: $0"
1313
fi
1414

15-
BUILD_DIR=$PWD/target/debug/test_build_base
15+
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$PWD/target}
16+
PROFILE=${PROFILE:-debug}
17+
BUILD_DIR=${CARGO_TARGET_DIR}/${PROFILE}/test_build_base
18+
1619
MY_DIR=$(dirname "$0")
1720
cd "$MY_DIR" || exit
1821
find . -name '*.rs' -exec ./update-references.sh "$BUILD_DIR" {} +

0 commit comments

Comments
 (0)