mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
This reverts commit c90a982106.
Reason for revert:
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8811949917908303825/+/u/compile/stdout
Original change's description:
> Switch to use CIPD ninja v1.8.2
>
> https://crrev.com/c/3674981 installed CIPD ninja packages.
> This CL switches from the old ninja binaries to them.
>
> Note that this CL doesn't change ninja version. the old/CIPD ninja binaries are v1.8.2.
>
> The differences from the old binaries are
> - the CIPD packages don't use chromium's clang.
> - the CIPD package for Linux doesn't use chromium's sysroot.
> - the min macOS version is 10.13, which was 10.6.
> Please also see https://crsrc.org/i/3pp/ninja/install_bootstrap.sh
>
>
> On Windows, ninja.exe will be installed under .cipd_bin.
> But there are many places that assume that ninja.exe exists on depot_tools root. So this CL also copies the ninja.exe from .cipd_bin to root in cipd_bin_setup.bat.
>
> Bug: 931218
> Change-Id: Ib67eee5e9b6ad9b2937b789626970d9c85867dbd
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3674982
> Commit-Queue: Junji Watanabe <jwata@google.com>
> Reviewed-by: Philipp Wollermann <philwo@google.com>
> Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Bug: 931218
Change-Id: I08d61dad119a0d23ae9ec8b1ed787dd3915de697
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3686854
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Owners-Override: Takuto Ikuta <tikuta@chromium.org>
41 lines
1.0 KiB
Bash
Executable File
41 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2012 Google Inc. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
OS="$(uname -s)"
|
|
THIS_DIR="$(dirname "${0}")"
|
|
|
|
function print_help() {
|
|
cat <<-EOF
|
|
No prebuilt ninja binary was found for this system.
|
|
Try building your own binary by doing:
|
|
cd ~
|
|
git clone https://github.com/ninja-build/ninja.git -b v1.8.2
|
|
cd ninja && ./configure.py --bootstrap
|
|
Then add ~/ninja/ to your PATH.
|
|
EOF
|
|
}
|
|
|
|
case "$OS" in
|
|
Linux)
|
|
MACHINE=$(uname -m)
|
|
case "$MACHINE" in
|
|
x86_64)
|
|
exec "${THIS_DIR}/ninja-linux64" "$@";;
|
|
*)
|
|
echo Unsupported architecture \($MACHINE\) -- unable to run ninja.
|
|
print_help
|
|
exit 1;;
|
|
esac
|
|
;;
|
|
Darwin) exec "${THIS_DIR}/ninja-mac" "$@";;
|
|
CYGWIN*) exec cmd.exe /c $(cygpath -t windows $0).exe "$@";;
|
|
MINGW*) cmd.exe //c $0.exe "$@";;
|
|
MSYS_NT*) cmd.exe //c $0.exe "$@";;
|
|
*) echo "Unsupported OS ${OS}"
|
|
print_help
|
|
exit 1;;
|
|
esac
|