diff options
author | 2024-10-02 13:30:47 -0700 | |
---|---|---|
committer | 2024-10-02 13:30:47 -0700 | |
commit | 76e6a927699c5abbfa5b41c3ba6a36ace994813b (patch) | |
tree | 4b1ba0aac10db240118c2e0aae6139718974e221 | |
parent | 8bce3818334988d4ac7da979c7a8a529613c455b (diff) |
Fix soong_ui.bash on mac
Mac required $TOP before it was set.
Test: Manually
Change-Id: I1723b524504eee1a12692c5a00b85a6efcf5ecc9
-rwxr-xr-x | soong_ui.bash | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/soong_ui.bash b/soong_ui.bash index 2f688ef8d..be78b68fc 100755 --- a/soong_ui.bash +++ b/soong_ui.bash @@ -14,18 +14,19 @@ # See the License for the specific language governing permissions and # limitations under the License. +source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../make/shell_utils.sh +require_top + # To track how long we took to startup. case $(uname -s) in Darwin) - export TRACE_BEGIN_SOONG=`$T/prebuilts/build-tools/path/darwin-x86/date +%s%3N` + export TRACE_BEGIN_SOONG=`$TOP/prebuilts/build-tools/path/darwin-x86/date +%s%3N` ;; *) export TRACE_BEGIN_SOONG=$(date +%s%N) ;; esac -source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../make/shell_utils.sh -require_top setup_cog_env_if_needed # Save the current PWD for use in soong_ui |