Commit 9e3dbba2 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

plugin: ignore -I command line arguments

parent e95fab7e
Pipeline #3098 failed with stage
in 0 seconds
......@@ -32,7 +32,7 @@ class ClangHashHelper:
os.mkdir(cache_dir)
os.environ["CCACHE_DIR"] = cache_dir
if "clang-hash" in self.mode.value:
cache_dir = os.path.join(self.tmp_directory.path, "clang-hash")
cache_dir = os.path.join(self.tmp_directory.path, "clang-hash-cache")
os.mkdir(cache_dir)
os.environ["CLANG_HASH_CACHE"] = cache_dir
......
......@@ -280,6 +280,14 @@ private:
if (Arg.find("-stop-if-same-hash") != std::string::npos) {
continue; // also don't hash this (plugin argument)
}
if (Arg == "-I") {
// throw away next parameter (include path)
getline(CommandLine, Arg, '\0');
continue;
}
if (Arg.substr(0,2) == "-I") {
continue; // also don't hash include paths
}
if (Arg.find("-hash-verbose") != std::string::npos) {
continue; // also don't hash this (plugin argument)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment