Skip to content

Commit

Permalink
Update CARGO_TARGET_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Feb 7, 2020
1 parent b7707bd commit 9d0e928
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/ui/update-all-references.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ if [[ "$1" == "--help" || "$1" == "-h" ]]; then
echo "usage: $0"
fi

BUILD_DIR=$PWD/target/debug/test_build_base
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$PWD/target}
PROFILE=${PROFILE:-debug}
BUILD_DIR=${CARGO_TARGET_DIR}/${PROFILE}/test_build_base

MY_DIR=$(dirname "$0")
cd "$MY_DIR" || exit
find . -name '*.rs' -exec ./update-references.sh "$BUILD_DIR" {} +

0 comments on commit 9d0e928

Please sign in to comment.