Kovarththanan Rajaratnam
07cc7bbb5f
Add a comment to indicate who's responsible for freeing the returned string
2010-03-18 13:04:01 +01:00
Kovarththanan Rajaratnam
76b7e6d6f9
Reuse the newly added format_hash_as_string() instead
2010-03-18 13:02:04 +01: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
Kovarththanan Rajaratnam
e8d07ea50c
Mark token array as const
2010-03-18 12:45:31 +01:00
Kovarththanan Rajaratnam
5873f4b1f7
Don't set static variable. It's unused in copy4()
2010-03-18 12:42:46 +01:00
Kovarththanan Rajaratnam
bb8820db3a
Let the compiler zero initialiase all the members
2010-03-18 12:41:13 +01:00
Joel Rosdahl
ef0d32ad2f
Set umask early since ccache_main() may create files/directories
2010-03-10 21:37:31 +01:00
Joel Rosdahl
574ab5a9af
Don't compile preprocessed source code when using -g3
...
This fixes bug #7190 .
2010-03-04 21:39:34 +01:00
Joel Rosdahl
106533eab5
Refactor CCACHE_CPP2 logic into a variable
2010-03-04 21:30:10 +01:00
Joel Rosdahl
baf2ff5d6b
Fix caching of empty source files in direct mode
2010-03-04 20:30:27 +01:00
Joel Rosdahl
271a4e48af
Remove superfluous dependencies from test/perf targets
2010-03-03 22:05:31 +01:00
Joel Rosdahl
c3e0367332
Remove unused CC variable from perf.sh command line
2010-03-03 22:04:44 +01:00
Joel Rosdahl
c641d06495
Merge branch 'perf' of git://github.com/krajaratnam/ccache
...
* 'perf' of git://github.com/krajaratnam/ccache:
Add perf target
Mention perl/python in INSTALL
2010-03-03 22:00:27 +01:00
Joel Rosdahl
eb82199816
Don't try to store file hash in manifest in read-only mode
2010-03-03 21:59:12 +01:00
Joel Rosdahl
db71fc59f1
Remove forgotten debugging statement
2010-03-03 20:47:39 +01:00
Kovarththanan Rajaratnam
3546fb39c2
Add perf target
2010-03-02 07:10:34 +01:00
Kovarththanan Rajaratnam
176a3346e2
Mention perl/python in INSTALL
2010-03-02 07:10:18 +01:00
Joel Rosdahl
4d690c7adb
Unset ccache version in ccache.spec
2010-03-01 20:03:29 +01:00
Joel Rosdahl
79a239f6fc
Clean files in .deps instead of including them in the dist archive
2010-02-28 21:54:39 +01:00
Joel Rosdahl
8dab83c28a
Change next version to 3.0pre1
2010-02-28 21:54:21 +01:00
Joel Rosdahl
0b2233dbdc
Prepare for v3.0pre0
2010-02-28 21:12:28 +01:00
Joel Rosdahl
162e2f4db3
Remove .ii tests
...
Removed .ii tests as some compilers (including newer versions of gcc) determine
which language to use based on .i/.ii extension, and C++ may not be installed.
2010-02-28 20:43:35 +01:00
Joel Rosdahl
9e6bd62af9
Make cleanup more robust by always deleting all siblings to the deleted file
2010-02-28 19:07:40 +01:00
Joel Rosdahl
d36c70046a
Add a get_extension utility function
2010-02-28 18:23:07 +01:00
Ramiro Polla
38926cce43
Always close(fd) as soon as file is mmap()'d.
2010-02-28 16:41:56 +01:00
Joel Rosdahl
1c31b315b4
Improve NEWS
2010-02-28 16:41:30 +01:00
Joel Rosdahl
cff73fff68
Rename str_basename() to basename()
2010-02-28 16:30:08 +01:00
Joel Rosdahl
9f190feebf
Improve error message when failing to unlink a file to clean up
2010-02-28 16:25:44 +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
209de521e4
Improve description of get_home_directory()
2010-02-28 14:56:03 +01:00
Kovarththanan Rajaratnam
1959ee6cad
Make format_file_hash() static
2010-02-28 14:55:55 +01:00
Kovarththanan Rajaratnam
f870e807e1
Remove cc_log from get_home_directory()
...
It's effectively a noop because 'cache_logfile' is NULL at this point of time, so we simply return immediately
2010-02-28 14:55:55 +01:00
Kovarththanan Rajaratnam
29258775d9
Mark long_options[] as const
2010-02-28 14:55:55 +01:00
Kovarththanan Rajaratnam
cad3f040d5
Reuse same variable for environment parsing
2010-02-28 14:55:55 +01:00
Kovarththanan Rajaratnam
bf14db7b38
Hoist CCACHE_NLEVELS into ccache()
...
Parse environment variables upfront instead of burying them in helper functions
2010-02-28 14:55:55 +01:00
Joel Rosdahl
9c9a31ccb2
Another try at supporting systems without support for "extern inline"
2010-02-28 14:55:50 +01:00
Joel Rosdahl
20cca3c195
Make fatal() exit like it should even if CCACHE_LOGFILE isn't set
2010-02-28 14:29:48 +01:00
Joel Rosdahl
614a19141a
Portability: Define PWD if not defined
2010-02-28 10:30:03 +01:00
Joel Rosdahl
d5dad3c61b
Portability: Define explicit compilation rule to pick up CPPFLAGS on HP-UX
2010-02-28 10:27:24 +01:00
Joel Rosdahl
23b5560851
Portability: Check for "extern inline" support
2010-02-28 10:17:43 +01:00
Joel Rosdahl
1f96472771
Portability: Include headers to get O_CREAT and friends
2010-02-28 00:23:27 +01:00
Joel Rosdahl
6256d04b04
Portability: Use AC_C_INLINE to check for availability of the inline keyword
2010-02-28 00:07:52 +01:00
Joel Rosdahl
8ce0a8475f
Portability: Include headers to get O_RDONLY and friend
2010-02-28 00:02:29 +01:00
Joel Rosdahl
19867b3bd2
Reformat NEWS
2010-02-27 23:58:42 +01:00
Joel Rosdahl
1685c08ec6
Remove unnecessary initialization of a static variable
2010-02-27 23:37:19 +01:00
Joel Rosdahl
70264c3113
Portability: Include sys/stat.h and fcntl.h to get O_RDONLY and friends
2010-02-27 23:32:15 +01:00
Joel Rosdahl
f6ac19d570
Portability: Let indexFor be a define instead of an inline function
2010-02-27 23:27:48 +01:00
Joel Rosdahl
1783d5fd43
Remove stray semicolon
2010-02-27 23:21:52 +01:00
Joel Rosdahl
a1e6035722
Include sys/types.h in an attempt to please AIX
2010-02-27 23:18:59 +01:00
Joel Rosdahl
9fbe4e4578
Simplify and correct calculation of default dependency file name
2010-02-27 22:53:04 +01:00