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

Commit a40ee09d authored by Joe Onorato's avatar Joe Onorato Committed by Automerger Merge Worker
Browse files

Merge "Move bazel from being a shell function to being a script at...

Merge "Move bazel from being a shell function to being a script at build/bazel/bin/bazel" am: f95b5f77

Original change: https://android-review.googlesource.com/c/platform/build/+/2267045



Change-Id: I1562fbc74d9cf8364bab39a0f55e5f62ce9d4b1c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7ad4d8fc f95b5f77
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -294,22 +294,6 @@ function setpaths()
    #export HOST_EXTRACFLAGS="-I "$T/system/kernel_headers/host_include
}

function bazel()
{
    if which bazel &>/dev/null; then
        >&2 echo "NOTE: bazel() function sourced from Android's envsetup.sh is being used instead of $(which bazel)"
        >&2 echo
    fi

    local T="$(gettop)"
    if [ ! "$T" ]; then
        >&2 echo "Couldn't locate the top of the Android tree. Try setting TOP. This bazel() function cannot be used outside of the AOSP directory."
        return
    fi

    "$T/tools/bazel" "$@"
}

function printconfig()
{
    local T=$(gettop)