build/sccache.mk
author Jon Coppeard <jcoppeard@mozilla.com>
Wed, 05 Aug 2015 17:54:02 +0100
changeset 522520 555061a4344c238d8e722cc096abf48b88f87e9f
parent 181905 41708cef5ec182544769d9d18776958aa79d27cd
child 443458 04650f6d8a40cd9ff4aa890d4c6c071aa02779dc
child 443493 b59a6459730e3fe5cf0888310b00de14bcffbd0f
child 443575 d80447e15735e00a75aed775f8dbc38842aa8ad0
child 443584 3d3263c49fba8e4464a6298b164d8c8552c8b0d2
child 484184 fcd36072fdb48cc5fa7eaee54f424b64546bb824
child 799871 a55e7d8c1252e14fd5aec6d71ab65e9a314655e5
child 878384 9ab657ffade94684b63d22e295ec38fec8d1f1a9
child 881933 0a5c146f3d793901aea8d4fb5e958b779acd29a3
child 882960 334767f2647e1346a6855a9cf336cfcc52c6c509
permissions -rw-r--r--
Add constructors to initialize array contents to a fill value

# 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/.

ifdef OBJDIR
BASE_DIR = $(OBJDIR)
else
# OSX Universal builds only do upload in the first MOZ_BUILD_PROJECTS
BASE_DIR = $(MOZ_OBJDIR)/$(firstword $(MOZ_BUILD_PROJECTS))
endif

preflight_all:
	# Terminate any sccache server that might still be around
	-python2.7 $(TOPSRCDIR)/sccache/sccache.py > /dev/null 2>&1

postflight_all:
	# Terminate sccache server. This prints sccache stats.
	-python2.7 $(TOPSRCDIR)/sccache/sccache.py 2>&1 | gzip > $(BASE_DIR)/dist/sccache.log.gz