build/mozconfig.cache
author Kyle Huey <khuey@kylehuey.com>
Sat, 15 Mar 2014 12:00:15 -0700
changeset 190962 32f48d6d3389ea5db45cfc6e452ec52595c11a43
parent 188313 3dfe2491e8ec7a9476b533fb0aecbcdcc8c6c904
child 191850 9748ca8aed6127589aaea6d28ad6c6cebae5d9c1
permissions -rw-r--r--
Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg

# 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