Use the correct ninja binary for the host in aninja
Change-Id: I79eb7fb397e9ae623a1cc2e67a472881767656f6 Test: `aninja -h` on Linux & Mac
This commit is contained in:
17
bin/aninja
17
bin/aninja
@@ -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 "$@"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user