Commit Graph

99 Commits

Author SHA1 Message Date
Joel Rosdahl
eb5d9bd3be Add some opt-in sloppiness 2010-05-17 22:29:42 +02:00
Joel Rosdahl
1737ec889f Refactor log functions yet some 2010-05-10 21:37:19 +02:00
Joel Rosdahl
4795f6e3de Improve log initialization 2010-05-10 18:30:17 +02:00
Joel Rosdahl
247f619565 Dont' crash when logging is disabled 2010-05-09 23:23:43 +02:00
Joel Rosdahl
862e729f07 Log executed commands 2010-05-09 22:51:16 +02:00
Joel Rosdahl
2c0d4095ad Introduce cc_log_no_newline function 2010-05-09 22:43:04 +02:00
Joel Rosdahl
39f48df93b Extract print_command function from print_executed_command 2010-05-09 22:19:22 +02:00
Joel Rosdahl
c609b16cc0 Rename temporary object file to cached object file if possible
This avoids copying the object file unnecessarily in the common case when we
store object files uncompressed in the cache.
2010-05-09 17:50:20 +02:00
Wilson Snyder
45b4932efb Show hostname and CWD in logfile 2010-05-09 13:18:38 +02:00
Joel Rosdahl
11a8b1439a Add a type parameter to hash_delimiter to tag hashed information 2010-05-05 22:16:28 +02:00
Joel Rosdahl
609fb3417f Add CCACHE_EXTRAFILES feature 2010-04-28 22:30:55 +02:00
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