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

Commit 0e4eba15 authored by Jingwen Chen's avatar Jingwen Chen
Browse files

Remove module_name_to_label short circuit from m.

This wasn't adding much value, let's remove it for now until we decide
on how mixed builds will be exposed for users later.

Test: USE_BAZEL_ANALYSIS=1 m droid
Change-Id: I16465fd7759646964ea8c50aab6ab91f47c5e8d1
parent dfc9d791
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -1720,14 +1720,6 @@ function b()


function m()
function m()
(
(
    if [[ "${USE_BAZEL_ANALYSIS}" =~ ^(true|1)$ ]]; then
        # This only short-circuits to Bazel for a single module target now.
        b cquery "@soong_injection//module_name_to_label:$@" 2>/dev/null
        if [[ $? == 0 ]]; then
            bazel build "@soong_injection//module_name_to_label:$@" --config=bp2build
            return $?
        fi
    fi
    _trigger_build "all-modules" "$@"
    _trigger_build "all-modules" "$@"
)
)