Merge "Use the correct ninja binary for the host in aninja" into main

This commit is contained in:
Treehugger Robot
2024-07-02 22:46:51 +00:00
committed by Gerrit Code Review

View File

@@ -20,6 +20,19 @@ source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../../make/shell_utils.
require_top require_top
require_lunch require_lunch
cd $(gettop) case $(uname -s) in
prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-${TARGET_PRODUCT}.ninja "$@" Darwin)
host_arch=darwin-x86
;;
Linux)
host_arch=linux-x86
;;
*)
>&2 echo Unknown host $(uname -s)
exit 1
;;
esac
cd $(gettop)
prebuilts/build-tools/${host_arch}/bin/ninja -f out/combined-${TARGET_PRODUCT}.ninja "$@"