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

Commit 743c4a0e authored by Kousik Kumar's avatar Kousik Kumar Committed by Automerger Merge Worker
Browse files

Merge "Add the ability to source RBE related scripts from envsetup.sh" am:...

Merge "Add the ability to source RBE related scripts from envsetup.sh" am: 660fdcd6 am: 2a678d73 am: d66723fb am: 53d07e9f

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

Change-Id: Iffe667b37563c1fc587e567af3449e5d34b8123c
parents f4166c76 53d07e9f
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -1875,6 +1875,16 @@ function showcommands() {
    fi
    fi
}
}


# Source necessary setup scripts needed to run the build with Remote Execution.
function source_rbe() {
    local T=$(gettop)

    if [[ "x$USE_RBE" != "x" && "$USE_RBE" != "false" ]]; then
        . $T/build/make/rbesetup.sh --skip-envsetup
    fi
}

validate_current_shell
validate_current_shell
source_vendorsetup
source_vendorsetup
source_rbe
addcompletions
addcompletions
+5 −2
Original line number Original line Diff line number Diff line
@@ -24,8 +24,11 @@ function _source_env_setup_script() {
}
}


# This function needs to run first as the remaining defining functions may be
# This function needs to run first as the remaining defining functions may be
# using the envsetup.sh defined functions.
# using the envsetup.sh defined functions. Skip this part if this script is already
# being invoked from envsetup.sh.
if [[ "$1" != "--skip-envsetup" ]]; then
  _source_env_setup_script || return
  _source_env_setup_script || return
fi


# This function prefixes the given command with appropriate variables needed
# This function prefixes the given command with appropriate variables needed
# for the build to be executed with RBE.
# for the build to be executed with RBE.