sccache.mk 674 B

12345678910111213141516171819
  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. ifdef OBJDIR
  5. BASE_DIR = $(OBJDIR)
  6. else
  7. # OSX Universal builds only do upload in the first MOZ_BUILD_PROJECTS
  8. BASE_DIR = $(MOZ_OBJDIR)/$(firstword $(MOZ_BUILD_PROJECTS))
  9. endif
  10. preflight_all:
  11. # Terminate any sccache server that might still be around
  12. -python2.7 $(TOPSRCDIR)/sccache/sccache.py > /dev/null 2>&1
  13. postflight_all:
  14. # Terminate sccache server. This prints sccache stats.
  15. -python2.7 $(TOPSRCDIR)/sccache/sccache.py 2>&1 | gzip > $(BASE_DIR)/dist/sccache.log.gz