mirror of
https://github.com/reactos/ccache.git
synced 2025-01-21 02:44:38 +00:00
Don't hash -U in the preprocessor mode
This commit is contained in:
parent
8886e66ba6
commit
1b322f5fe4
4
NEWS.txt
4
NEWS.txt
@ -100,6 +100,10 @@ New features and improvements
|
||||
- For debugging purposes, the variable `CCACHE_VERBOSE` may now be set to
|
||||
make ccache print executed commands to standard output.
|
||||
|
||||
- The following options are no longer hashed in the preprocessor mode:
|
||||
`-imacros`, `-iprefix`, `-iwithprefix`, `-iwithprefixbefore`,
|
||||
`-nostdinc`, `-nostdinc++` and `-U`.
|
||||
|
||||
|
||||
Bug fixes
|
||||
~~~~~~~~~
|
||||
|
3
ccache.c
3
ccache.c
@ -863,7 +863,8 @@ static struct file_hash *calculate_object_hash(
|
||||
strcmp(args->argv[i], "-idirafter") == 0 ||
|
||||
strcmp(args->argv[i], "-isystem") == 0 ||
|
||||
strcmp(args->argv[i], "-nostdinc") == 0 ||
|
||||
strcmp(args->argv[i], "-nostdinc++") == 0) {
|
||||
strcmp(args->argv[i], "-nostdinc++") == 0 ||
|
||||
strcmp(args->argv[i], "-U") == 0) {
|
||||
/* Skip from hash. */
|
||||
i++;
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user