Commit 67574d7a authored by Jamie Madill's avatar Jamie Madill Committed by LUCI CQ

gn: Call gn.bat in msysgit on Windows.

Since 'python3' might not exist in Windows, this fixes the 'gn'
script for msysgit users.

Recipe-Manual-Change: infra
Bug: None
Change-Id: Ic5ed76963a7cf1819008470079256a6fd572fb0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3103446Reviewed-by: 's avatarDirk Pranke <dpranke@google.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Auto-Submit: Jamie Madill <jmadill@chromium.org>
parent 8fca6333
......@@ -5,4 +5,10 @@
base_dir=$(dirname "$0")
# In git bash on Windows, invoke the batch file.
if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
gn.bat "$@"
exit
fi
PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/gn.py" "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment