Skip to content

Commit

Permalink
prewarm-cache: add some common flag combinations to ignore in cache-key.
Browse files Browse the repository at this point in the history
-v and -q are often used together as -vq or -qv.
  • Loading branch information
hzeller committed Jun 19, 2024
1 parent 16f65ae commit ceee144
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bant/util/filesystem-prewarm-cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ void FilesystemPrewarmCacheInit(int argc, char *argv[]) {
const std::string_view arg(argv[i]);
// With or without the following flags, same access pattern expected; don't
// inlude them in the cache uniqifier.
if (arg == "-v" || arg == "-k" || arg == "-q") continue;
if (arg == "-v" || arg == "-q" || arg == "-vq" || arg == "-qv" ||
arg == "-k") {
continue;
}

if (arg == "-C" || // already reflected in the cwd
arg == "-o" || arg == "-f") {
Expand Down

0 comments on commit ceee144

Please sign in to comment.