summaryrefslogtreecommitdiffstats
path: root/comm/build/mozconfig.comm-sccache
blob: ed7550432437e2c7956874f0ce36252f99e49fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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/.

# Must be included before M-C:build/mozconfig.cache
if test -z "$bucket" -a -z "$SCCACHE_DISABLE"; then
  if test -n "$TASKCLUSTER_WORKER_LOCATION" -a -x "$(command -v jq)"; then
    cloud=$(echo $TASKCLUSTER_WORKER_LOCATION | jq .cloud | tr -d \")

    case $cloud in
      google)
        gcp_prefix="comm-sccache"
        ;;
      aws)
        aws_prefix="comm-central"
        ;;
    esac
  fi
fi