Merge "Continue using the real make if -C is used" am: 218a0c0c70 am: 56a2bb9ec9

am: 4a1a1fc21d

Change-Id: I726a8cf5bde267b8ef881972f19f601c405e827f
This commit is contained in:
Dan Willemsen 2017-07-29 08:24:23 +00:00 committed by android-build-merger
commit f7b6dc8b24
1 changed files with 8 additions and 1 deletions

View File

@ -1554,6 +1554,13 @@ function get_make_command()
{
# If we're in the top of an Android tree, use soong_ui.bash instead of make
if [ -f build/soong/soong_ui.bash ]; then
# Always use the real make if -C is passed in
for arg in "$@"; do
if [[ $arg == -C* ]]; then
echo command make
return
fi
done
echo build/soong/soong_ui.bash --make-mode
else
echo command make
@ -1600,7 +1607,7 @@ function _wrap_build()
function make()
{
_wrap_build $(get_make_command) "$@"
_wrap_build $(get_make_command "$@") "$@"
}
function provision()