build/mozconfig.cache

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:340f7300db99
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 # Setup for build cache
6
7 read branch platform master <<EOF
8 $(python2.7 -c 'import json; p = json.loads(open("'"$topsrcdir"'/../buildprops.json").read())["properties"]; print p["branch"], p["platform"], p["master"]' 2> /dev/null)
9 EOF
10
11 bucket=
12 if test -z "$SCCACHE_DISABLE" -a -z "$no_sccache"; then
13 case "${branch}_${master}" in
14 try_*scl1.mozilla.com*|try_*.scl3.mozilla.com*)
15 bucket=mozilla-releng-ceph-cache-scl3-try
16 mk_add_options "export SCCACHE_NO_HTTPS=1"
17 ;;
18 try_*use1.mozilla.com*)
19 bucket=mozilla-releng-s3-cache-us-east-1-try
20 ;;
21 try_*usw2.mozilla.com*)
22 bucket=mozilla-releng-s3-cache-us-west-2-try
23 ;;
24 esac
25 fi
26
27 if test -z "$bucket"; then
28 case "$platform" in
29 win*) : ;;
30 *)
31 ac_add_options --with-ccache
32 esac
33 else
34 mk_add_options "export SCCACHE_BUCKET=$bucket"
35 case "$master" in
36 *use1.mozilla.com*|*usw2.mozilla.com*)
37 mk_add_options "export SCCACHE_NAMESERVER=169.254.169.253"
38 ;;
39 esac
40 ac_add_options "--with-compiler-wrapper=python2.7 $topsrcdir/sccache/sccache.py"
41 mk_add_options MOZ_PREFLIGHT+=build/sccache.mk
42 mk_add_options MOZ_POSTFLIGHT+=build/sccache.mk
43 case "$platform" in
44 win*)
45 # sccache supports a special flag to create depfiles.
46 export _DEPEND_CFLAGS='-deps$(MDDEPDIR)/$(@F).pp'
47 # Windows builds have a default wrapper that needs to be overridden
48 mk_add_options "export CC_WRAPPER="
49 mk_add_options "export CXX_WRAPPER="
50 # For now, sccache doesn't support separate PDBs so force debug info to be
51 # in object files.
52 mk_add_options "export COMPILE_PDB_FLAG="
53 mk_add_options "export HOST_PDB_FLAG="
54 mk_add_options "export MOZ_DEBUG_FLAGS=-Z7"
55 ;;
56 esac
57 fi

mercurial