summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-06-01 11:42:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-06-01 11:42:51 +0000
commit2196c8967cde043fdf9869491cd8026d970fd38c (patch)
tree3743441287d1bd418a6067950dd8267c8dbbb0ff /tools/configure
parent88f3a53b7ef9cc06dbceee4152421626008d9e73 (diff)
downloadrockbox-2196c8967cde043fdf9869491cd8026d970fd38c.tar.gz
rockbox-2196c8967cde043fdf9869491cd8026d970fd38c.zip
Use --ccache to enable ccache for builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6543 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 1af5d2a54e..17001f8a4d 100755
--- a/tools/configure
+++ b/tools/configure
@@ -278,9 +278,16 @@ if test "$1" = "--help"; then
278 echo "Rockbox configure script." 278 echo "Rockbox configure script."
279 echo "Invoke this in a directory to generate a Makefile to build Rockbox" 279 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
280 echo "Do *NOT* run this within the tools directory!" 280 echo "Do *NOT* run this within the tools directory!"
281 echo ""
282 echo "Usage: configure [--ccache]"
281 exit 283 exit
282fi 284fi
283 285
286if test "$1" = "--ccache"; then
287 echo "Enable ccache for building"
288 ccache="yes"
289fi
290
284if test -r "configure"; then 291if test -r "configure"; then
285 # this is a check for a configure script in the current directory, it there 292 # this is a check for a configure script in the current directory, it there
286 # is one, try to figure out if it is this one! 293 # is one, try to figure out if it is this one!
@@ -627,6 +634,10 @@ else
627 634
628fi 635fi
629 636
637if test "X$ccache" = "Xyes"; then
638 CC="ccache $CC"
639fi
640
630if test "X$endian" = "Xbig"; then 641if test "X$endian" = "Xbig"; then
631 defendian="ROCKBOX_BIG_ENDIAN" 642 defendian="ROCKBOX_BIG_ENDIAN"
632else 643else