Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c68b18f authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Use the correct ninja binary for the host in aninja

Change-Id: I79eb7fb397e9ae623a1cc2e67a472881767656f6
Test: `aninja -h` on Linux & Mac
parent 5aec0afe
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -20,6 +20,19 @@ source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../../make/shell_utils.
require_top
require_lunch

case $(uname -s) in
    Darwin)
        host_arch=darwin-x86
        ;;
    Linux)
        host_arch=linux-x86
        ;;
    *)
        >&2 echo Unknown host $(uname -s)
        exit 1
        ;;
esac

cd $(gettop)
prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-${TARGET_PRODUCT}.ninja "$@"
prebuilts/build-tools/${host_arch}/bin/ninja -f out/combined-${TARGET_PRODUCT}.ninja "$@"