mirror of
https://github.com/reactos/ccache.git
synced 2024-11-23 11:49:41 +00:00
Look for .gcda files in profile directory when using profile
Minor whitespace fixes; removing unused declaration
This commit is contained in:
parent
d2a298e996
commit
37ade14d5c
11
ccache.c
11
ccache.c
@ -1036,8 +1036,8 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode)
|
||||
}
|
||||
|
||||
/*
|
||||
* For profile generation (-fprofile-arcs, -fprofile-generate):
|
||||
* - hash profile directory
|
||||
* For profile generation (-fprofile-arcs, -fprofile-generate):
|
||||
* - hash profile directory
|
||||
* - output to the real file first
|
||||
*
|
||||
* For profile usage (-fprofile-use):
|
||||
@ -1068,10 +1068,13 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode)
|
||||
}
|
||||
if (profile_use) {
|
||||
/* Calculate gcda name */
|
||||
/* TODO: Look at value of -fprofile-use= or -fprofile-dir= */
|
||||
output_to_real_object_first = true;
|
||||
base_name = remove_extension(output_obj);
|
||||
gcda_name = format("%s.gcda", base_name);
|
||||
if (profile_dir) {
|
||||
gcda_name = format("%s.gcda", base_name);
|
||||
} else {
|
||||
gcda_name = format("%s/%s.gcda", profile_dir, base_name);
|
||||
}
|
||||
free(base_name);
|
||||
hash_delimiter(hash, "-fprofile-use");
|
||||
/* Add the gcda to our hash */
|
||||
|
@ -9,6 +9,5 @@ bool compopt_too_hard(const char *option);
|
||||
bool compopt_too_hard_for_direct_mode(const char *option);
|
||||
bool compopt_takes_path(const char *option);
|
||||
bool compopt_takes_arg(const char *option);
|
||||
bool compopt_needs_realdir(const char *option);
|
||||
|
||||
#endif /* CCACHE_COMPOPT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user