bug 577636 - add configure option to use ccache r=khuey
authorBrad Lassey <blassey@mozilla.com>
Fri, 16 Jul 2010 11:50:13 -0400
changeset 47824 0c4c442e5bb8d54814afbd5a3b008a5fac4ac3a6
parent 47823 5fd0b1867f79c77d22d38b8232d77ea65f8ad6f1
child 47825 8e58befb03a5be475c766b99d3c59ffd3d560c95
push id14431
push userblassey@mozilla.com
push dateFri, 16 Jul 2010 18:32:52 +0000
treeherderautoland@0f1fddce41e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs577636
milestone2.0b2pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 577636 - add configure option to use ccache r=khuey
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -7414,16 +7414,29 @@ dnl ====================================
 MOZ_ARG_ENABLE_BOOL(gczeal,
 [  --enable-gczeal         Enable zealous JavaScript GCing],
     JS_GC_ZEAL=1,
     JS_GC_ZEAL= )
 if test -n "$JS_GC_ZEAL"; then
     AC_DEFINE(JS_GC_ZEAL)
 fi
 
+dnl ======================================================
+dnl = Enable compiling with ccache
+dnl ======================================================
+MOZ_ARG_WITH_STRING(ccache,
+[  --with-ccache=path/to/ccache
+                          Enable compiling with ccache],
+    CCACHE_PATH=$withval,)
+
+if test -n "$CCACHE_PATH"; then
+  CC="$CCACHE_PATH $CC"
+  CXX="$CCACHE_PATH $CXX"
+fi
+
 dnl ========================================================
 dnl = Enable static checking using gcc-dehydra
 dnl ========================================================
 
 MOZ_ARG_WITH_STRING(static-checking,
 [  --with-static-checking=path/to/gcc_dehydra.so
                           Enable static checking of code using GCC-dehydra],
     DEHYDRA_PATH=$withval,
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -4450,16 +4450,29 @@ dnl ====================================
 MOZ_ARG_ENABLE_BOOL(gczeal,
 [  --enable-gczeal         Enable zealous GCing],
     JS_GC_ZEAL=1,
     JS_GC_ZEAL= )
 if test -n "$JS_GC_ZEAL"; then
     AC_DEFINE(JS_GC_ZEAL)
 fi
 
+dnl ======================================================
+dnl = Enable compiling with ccache
+dnl ======================================================
+MOZ_ARG_WITH_STRING(ccache,
+[  --with-ccache=path/to/ccache
+                          Enable compiling with ccache],
+    CCACHE_PATH=$withval,)
+
+if test -n "$CCACHE_PATH"; then
+  CC="$CCACHE_PATH $CC"
+  CXX="$CCACHE_PATH $CXX"
+fi
+
 dnl ========================================================
 dnl = Enable static checking using gcc-dehydra
 dnl ========================================================
 
 MOZ_ARG_WITH_STRING(static-checking,
 [  --with-static-checking=path/to/gcc_dehydra.so
                           Enable static checking of code using GCC-dehydra],
     DEHYDRA_PATH=$withval,