88 Commits

Author SHA1 Message Date
Joel Rosdahl
025e2a58a9 Hash a delimiter string between parts to separate them
Previously, "gcc -I-O2 -c file.c" and "gcc -I -O2 -c file.c" would hash to the
same sum.
2010-04-27 18:19:51 +02:00
Joel Rosdahl
6331376531 Let hash_buffer take a void* to avoid some casting 2010-04-27 08:18:16 +02:00
Joel Rosdahl
b6f5348a50 Merge branch 'cleanup' of git://github.com/krajaratnam/ccache 2010-03-28 17:46:11 +02:00
Joel Rosdahl
9a9f5b1736 Add CCACHE_VERBOSE option
This was suggested by William S Fulton, who implemented this feature in his
SWIG port of ccache.
2010-03-28 17:44:25 +02:00
Kovarththanan Rajaratnam
cfb3b58f5c Make format_file_hash public by moving it to util.c (as format_hash_as_string) 2010-03-18 12:59:24 +01:00
Joel Rosdahl
8dab83c28a Change next version to 3.0pre1 2010-02-28 21:54:21 +01:00
Joel Rosdahl
d36c70046a Add a get_extension utility function 2010-02-28 18:23:07 +01:00
Joel Rosdahl
cff73fff68 Rename str_basename() to basename() 2010-02-28 16:30:08 +01:00
Joel Rosdahl
f3fab49c67 Introduce remove_extension function and use it to calculate dependency filename 2010-02-28 16:22:51 +01:00
Joel Rosdahl
2b2f5ddcd8 Improve display of max size display values 2010-02-27 14:01:14 +01:00
Joel Rosdahl
9f562b25f2 Include stdarg.h to make Tru64 happy 2010-02-26 22:34:56 +01:00
Joel Rosdahl
ef95e5c6e2 Include some more system headers to make Solaris happy 2010-02-26 22:15:26 +01:00
Kovarththanan Rajaratnam
8f2365f24d use size_t when we refer to memory sizes 2010-02-22 23:02:22 +01:00
Joel Rosdahl
131111cd58 Handle missing or empty object file from compiler properly 2010-02-22 08:36:40 +01:00
Joel Rosdahl
cbe36a2bf0 Clean up some constants 2010-02-21 19:42:39 +01:00
Joel Rosdahl
ecf85fc492 Remove standard includes from ccache.h 2010-02-17 21:03:27 +01:00
Joel Rosdahl
d93529548a Move utimes/utime into an update_mtime function 2010-02-17 20:10:00 +01:00
Joel Rosdahl
89433889e5 Bump version to 3.0pre0 2010-02-12 21:52:28 +01:00
Joel Rosdahl
f1cf9871fa Made it possible to set MYNAME when compiling 2010-02-12 21:52:23 +01:00
Joel Rosdahl
78beb6c38b Use standard uint32_t type instead of uint32 2010-01-05 18:53:04 +01:00
Joel Rosdahl
24f886c412 Implement installcheck make target 2010-01-05 18:53:03 +01:00
Joel Rosdahl
ed90c13b1a Clean up Makefile and add dist target 2010-01-05 18:53:03 +01:00
Joel Rosdahl
fb61183998 Improve copy_file and move_file functions 2010-01-05 18:53:02 +01:00
Joel Rosdahl
8190792e35 Require zlib 2010-01-05 18:53:02 +01:00
Joel Rosdahl
f5bb7e4e5a Rewrite absolute paths under CCACHE_BASEDIR to relative 2010-01-05 18:53:02 +01:00
Joel Rosdahl
e53af1a618 First working version of the direct mode 2010-01-05 18:53:01 +01:00
Joel Rosdahl
26d779b300 Log fatal messages both to stderr and log file 2010-01-05 18:53:01 +01:00
Joel Rosdahl
9928604eb5 Let hash_* functions take a hash context so that they are reusable 2010-01-05 18:53:01 +01:00
Joel Rosdahl
dca11d321b Remove trailing whitespace 2010-01-05 18:53:01 +01:00
Joel Rosdahl
1fd0dde1d9 Add __attribute__ format declarations 2010-01-05 18:53:01 +01:00
Francois Marier
9786fdf1d2 Detect and report permission failure for "ccache -F/-M"
Debian patch 12_cachesize_permissions.diff. See
<http://bugs.debian.org/332527>.
2010-01-05 18:53:00 +01:00
Robin H. Johnson
237bee6615 Use utimes(3) instead of utime(3) to avoid truncating timestamps
See <http://bugs.gentoo.org/136233>.
2010-01-05 18:53:00 +01:00
Karl Chen
feed6077d2 Create CACHEDIR.TAG file
See <http://lists.samba.org/archive/ccache/2008q1/000316.html>.
2010-01-05 18:53:00 +01:00
Lars Gustäbel
3d7e33e81e Use zlib compression for the cached files
See <http://www.gustaebel.de/lars/ccache/>.
2010-01-05 18:53:00 +01:00
Andrew Tridgell
a5ab55ad60 fixed build on FreeBSD 2005-07-25 09:05:46 +02:00
Andrew Tridgell
c890194669 up ccache version 2004-09-08 05:31:57 +02:00
Andrew Tridgell
2aa8cf97f7 cope with HOME not being set 2004-09-06 14:59:12 +02:00
Andrew Tridgell
2090a5dd8d - attempt to make ccache work with cygwin by using O_BINARY (thanks
to email from Emilio Lopes <eclig@gmx.net>)

 - disabled the direct .ii tests as these break with newest gcc
2004-09-06 14:24:05 +02:00
Andrew Tridgell
0bd4ffafcf - avoid using basename() to fix systems with that already defined
- add EINTR handling in lock_fd()

- make sure we prototype asprintf on systems that don't have it
2003-09-25 08:11:28 +02:00
Andrew Tridgell
bf44b83f2f added support for direct compilation of .i and .ii files 2003-09-25 07:41:17 +02:00
Andrew Tridgell
b41edf9e0c - change to version 2.3
- patch from Martin Pool to better handle DEPENDENCIES_OUTPUT
2003-09-24 09:10:32 +02:00
Andrew Tridgell
df18a2a815 update version number
more unsupported options
2003-02-17 02:09:12 +01:00
Andrew Tridgell
d77d4396a7 added support for CCACHE_PREFIX option 2003-02-16 03:28:35 +01:00
Andrew Tridgell
70b4385dbe added args_strip() function for stripping --cacche-* options in
failed()
2003-02-08 06:49:22 +01:00
Andrew Tridgell
0192c58393 prepare for 2.1.1 2003-01-09 22:42:12 +01:00
Andrew Tridgell
b8f55a1d76 version 2.1 release 2003-01-07 22:20:43 +01:00
Andrew Tridgell
5cc1bebc46 added CCACHE_HASHDIR option
updated ready for 2.0 release
2003-01-07 06:39:37 +01:00
Andrew Tridgell
f3715e0088 check for output to stdout 2003-01-07 06:06:07 +01:00
Andrew Tridgell
8597f3a880 add a default cache size of 1G 2003-01-07 04:45:39 +01:00
Andrew Tridgell
64fc20ee97 - update version to 2.0
- added CCACHE_RECACHE option (suggestion from Ismael Orenstein <ismore@ieg.com.br>)
2003-01-06 01:20:54 +01:00