mirror of
https://github.com/reactos/ccache.git
synced 2025-01-09 13:00:37 +00:00
Improve handling of -imacros, -iprefix and -i*prefix* compiler options
This commit is contained in:
parent
2b14cabf64
commit
2872fe872f
10
ccache.c
10
ccache.c
@ -738,8 +738,12 @@ static int find_hash(ARGS *args, enum findhash_call_mode mode)
|
||||
if (mode == FINDHASH_CPP_MODE) {
|
||||
if (i < args->argc-1) {
|
||||
if (strcmp(args->argv[i], "-I") == 0 ||
|
||||
strcmp(args->argv[i], "-imacros") == 0 ||
|
||||
strcmp(args->argv[i], "-include") == 0 ||
|
||||
strcmp(args->argv[i], "-D") == 0 ||
|
||||
strcmp(args->argv[i], "-iprefix") == 0 ||
|
||||
strcmp(args->argv[i], "-iwithprefix") == 0 ||
|
||||
strcmp(args->argv[i], "-iwithprefixbefore") == 0 ||
|
||||
strcmp(args->argv[i], "-idirafter") == 0 ||
|
||||
strcmp(args->argv[i], "-isystem") == 0) {
|
||||
/* Skip from hash. */
|
||||
@ -1231,7 +1235,8 @@ static void process_args(int argc, char **argv)
|
||||
*/
|
||||
{
|
||||
const char *opts[] = {
|
||||
"-I", "-idirafter", "-include", "-isystem", NULL
|
||||
"-I", "-idirafter", "-imacros", "-include",
|
||||
"-iprefix", "-isystem", NULL
|
||||
};
|
||||
int j;
|
||||
char *relpath;
|
||||
@ -1281,8 +1286,7 @@ static void process_args(int argc, char **argv)
|
||||
|
||||
/* options that take an argument */
|
||||
{
|
||||
const char *opts[] = {"-imacros", "-iprefix",
|
||||
"-iwithprefix", "-iwithprefixbefore",
|
||||
const char *opts[] = {"-iwithprefix", "-iwithprefixbefore",
|
||||
"-L", "-D", "-U", "-x", "-MF",
|
||||
"-MT", "-MQ", "-aux-info",
|
||||
"--param", "-A", "-Xlinker", "-u",
|
||||
|
Loading…
Reference in New Issue
Block a user