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

Commit 76e6a927 authored by Cole Faust's avatar Cole Faust
Browse files

Fix soong_ui.bash on mac

Mac required $TOP before it was set.

Test: Manually
Change-Id: I1723b524504eee1a12692c5a00b85a6efcf5ecc9
parent 8bce3818
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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