206 Commits

Author SHA1 Message Date
Joel Rosdahl
d94df1875c Disable compression by default 2010-04-29 18:25:26 +02:00
Joel Rosdahl
609fb3417f Add CCACHE_EXTRAFILES feature 2010-04-28 22:30:55 +02:00
Joel Rosdahl
1b322f5fe4 Don't hash -U in the preprocessor mode 2010-04-28 21:21:42 +02:00
Joel Rosdahl
3f26134a07 Handle __{DATE,FILE,TIME}__ macros in a better way 2010-04-28 08:56:06 +02:00
Joel Rosdahl
a60d2af7c2 Refactor hash calculation into a common part and a mode-specific part
This was mainly done to avoid calculating the common parts twice.
2010-04-27 18:40:21 +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
db10ada44c Rename global object_hash to cached_obj_hash to match cached_obj 2010-04-27 08:38:12 +02:00
Joel Rosdahl
91bd8ee901 No need to hash -nostdinc and -nostdinc++ in preprocessor mode 2010-04-25 17:27:01 +02:00
Joel Rosdahl
149d4912dc Disable direct mode if __{DATE,FILE,TIME}__ is used 2010-04-25 17:03:23 +02:00
Joel Rosdahl
6faf3267d2 Improve comments in hash_include_file_string 2010-04-25 17:02:25 +02:00
Joel Rosdahl
32e96d16a3 Improve comment of process_preprocessed_file 2010-04-25 17:01:04 +02:00
Joel Rosdahl
0c38083fb5 Don't log unset base directory 2010-04-25 16:43:33 +02:00
Joel Rosdahl
b2dd02bbdc Refactoring: move hash_*_ignoring_comments to hash_include_file_* in testutil 2010-04-25 15:44:18 +02:00
Joel Rosdahl
702db98740 Don't check ctime when determining if an include file is too new
If you backdate the include file's mtime, you have to take the
consequences...
2010-04-25 14:04:58 +02:00
Joel Rosdahl
40c0a39069 Improve handling of -Wp, options 2010-04-25 11:37:45 +02:00
Joel Rosdahl
2901c06d72 Don't set CCACHE_BASEDIR by default
Disabled by default because it gives a different result than the real compiler
would give when -g is being used.
2010-04-24 21:39:31 +02:00
Joel Rosdahl
e1c9e3f330 Switch license to GPLv3+ 2010-04-22 22:47:16 +02:00
Joel Rosdahl
007445b9ff Improve ccache description in ccache.c 2010-04-22 22:25:39 +02:00
Joel Rosdahl
b0f0af5ac0 Handle -finput-charset correctly 2010-04-12 23:23:38 +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
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
eb82199816 Don't try to store file hash in manifest in read-only mode 2010-03-03 21:59:12 +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
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
Kovarththanan Rajaratnam
1959ee6cad Make format_file_hash() static 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
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
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
Joel Rosdahl
f447ee7c14 Remove unnecessary NULL check 2010-02-27 22:22:03 +01:00
Joel Rosdahl
2b2f5ddcd8 Improve display of max size display values 2010-02-27 14:01:14 +01:00
Joel Rosdahl
dd9f6cd234 Bail out on too hard compiler option -save-temps 2010-02-27 12:36:41 +01:00
Joel Rosdahl
2c0be1c61d Sort unsupported compiler options 2010-02-27 12:36:41 +01:00
Joel Rosdahl
e485956929 Improve detection of program name being MYNAME 2010-02-27 12:36:41 +01:00
Joel Rosdahl
c63aad8807 Introduce string constants for usage and version texts 2010-02-27 12:36:35 +01:00
Joel Rosdahl
b4c372f829 Fix potential use of NULL cache_dir 2010-02-27 10:06:55 +01:00
Joel Rosdahl
e374b1b1d0 Improve log message 2010-02-25 08:19:51 +01:00
Joel Rosdahl
3eb87a8bbf Improve log messages 2010-02-24 21:39:35 +01:00
Joel Rosdahl
815d96dd6a Let cc_log and fatal add a newline character to the message 2010-02-24 21:25:32 +01:00
Joel Rosdahl
4af546d3dc Merge CCACHE_HASH_COMPILER/CCACHE_NOHASH_SIZE_MTIME into CCACHE_COMPILERCHECK 2010-02-22 22:40:50 +01:00
Joel Rosdahl
fb360d9e10 Add missing newlines to cc_logs 2010-02-22 21:27:31 +01:00
Joel Rosdahl
2b215563e0 Merge branch 'cleanup' of git://github.com/krajaratnam/ccache
* 'cleanup' of git://github.com/krajaratnam/ccache:
  ccache.c: mark extensions array as const
  cache.c: mark a few variables as static
2010-02-22 08:39:24 +01:00