diff options
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compile.sh b/compile.sh index 7d9be4cbb1..a8819be330 100755 --- a/compile.sh +++ b/compile.sh @@ -26,7 +26,7 @@ set -o errexit # etc, leading to confusing errors. export BAZEL_OLD_PATH=$PATH case "$(uname -s | tr [:upper:] [:lower:])" in -msys*|mingw*) +msys*|mingw*|cygwin*) # Check that the PATH is set up correctly by attempting to locate `[`. # This ensures that `which` is installed correctly and can succeed, while # also avoids accidentally locating a tool that exists in plain Windows too @@ -114,10 +114,9 @@ if [[ $PLATFORM == "darwin" ]] && \ EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS-} --define IPHONE_SDK=1" fi -case "${PLATFORM}" in -msys*|mingw*) +if [[ $PLATFORM == "windows" ]]; then EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS-} --cpu=x64_windows_msys --host_cpu=x64_windows_msys" -esac +fi source scripts/bootstrap/bootstrap.sh |