Skip to content

Commit

Permalink
fixup! build: don't pass python override to V8 build
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Jun 8, 2021
1 parent 52c42b2 commit 774c8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/make-v8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ V8_BUILD_OPTIONS=$2
# Python 3 may have been symlinked as `python` in an override directory by
# configure.py and added to PATH. Strip this out of PATH to avoid interfering
# with V8's build toolchain.
OVERRIDE_BIN_DIR="$(cd out/tools/bin 2>/dev/null && pwd || true)"
OVERRIDE_BIN_DIR="$(cd out/tools/bin 2>/dev/null && pwd)"
if [ -n "$OVERRIDE_BIN_DIR" ]; then
PATH=`echo $PATH | tr ":" "\n" | grep -v "^$OVERRIDE_BIN_DIR$" | tr "\n" ":"`
PATH=`echo "$PATH" | tr ":" "\n" | grep -v "^$OVERRIDE_BIN_DIR$" | tr "\n" ":"`
fi

cd deps/v8 || exit
Expand Down

0 comments on commit 774c8fe

Please sign in to comment.