2014-02-12 17:05:59 -08:00
|
|
|
# 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=
|
2014-02-27 16:02:55 -08:00
|
|
|
if test -z "$SCCACHE_DISABLE" -a -f "$topsrcdir/sccache/sccache.py"; then
|
2014-02-12 17:05:59 -08:00
|
|
|
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"
|
2014-02-24 22:41:57 -08:00
|
|
|
ac_add_options "--with-compiler-wrapper=python2.7 $topsrcdir/sccache/sccache.py"
|
2014-03-28 05:05:14 -07:00
|
|
|
mk_add_options MOZ_PREFLIGHT+=build/sccache.mk
|
|
|
|
mk_add_options MOZ_POSTFLIGHT+=build/sccache.mk
|
2014-02-12 17:05:59 -08:00
|
|
|
fi
|