build/mozconfig.cache
author Shu-yu Guo <shu@rfrn.org>
Mon, 10 Mar 2014 19:17:24 -0700
changeset 190097 7265b36257e5c0bee62886ef2bcb917862aad2d2
parent 188313 3dfe2491e8ec7a9476b533fb0aecbcdcc8c6c904
child 191850 9748ca8aed6127589aaea6d28ad6c6cebae5d9c1
permissions -rw-r--r--
Bug 981167 - Followup: fix Debugger.Frame properties and methods that need pc updated. (r=jimb)

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Setup for build cache

bucket=
if test -z "$SCCACHE_DISABLE" -a -f "$topsrcdir/sccache/sccache.py"; then
    case `hostname` in
    try*spot*.use1.mozilla.com|try*ec2*.use1.mozilla.com)
        bucket=mozilla-releng-s3-cache-us-east-1-try
        ;;
    try*spot*.usw2.mozilla.com|try*ec2*.usw2.mozilla.com)
        bucket=mozilla-releng-s3-cache-us-west-2-try
        ;;
    esac
fi

if test -z "$bucket"; then
    ac_add_options --with-ccache
else
    mk_add_options "export SCCACHE_BUCKET=$bucket"
    mk_add_options "export SCCACHE_NAMESERVER=169.254.169.253"
    ac_add_options "--with-compiler-wrapper=python2.7 $topsrcdir/sccache/sccache.py"
fi