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

Commit da93996a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 41dfb90e 3c68b18f
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 "$@"