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

Commit 561e16a0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Show bazel help for `b` called without args." am: bb53fe39 am: 54117497

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

Change-Id: I9a86255dd895e732ef7dd462a75b1e22c252de0d
parents fbcfd102 54117497
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1696,12 +1696,19 @@ function _trigger_build()
    fi
)

# Convenience entry point (like m) to use Bazel in AOSP.
function b()
(
    # Generate BUILD, bzl files into the synthetic Bazel workspace (out/soong/workspace).
    m nothing GENERATE_BAZEL_FILES=true || return 1
    # Then, run Bazel using the synthetic workspace as the --package_path.
    if [[ -z "$@" ]]; then
        # If there are no args, show help.
        "$(gettop)/tools/bazel" help
    else
        # Else, always run with the bp2build configuration, which sets Bazel's package path to the synthetic workspace.
        "$(gettop)/tools/bazel" "$@" --config=bp2build
    fi
)

function m()