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

plugin: ignore filenames ending with .i

parent da0cfc42
Pipeline #3068 passed with stage
in 0 seconds
...@@ -189,6 +189,8 @@ private: ...@@ -189,6 +189,8 @@ private:
} }
if (Arg.size() > 2 && Arg.compare(Arg.size() - 2, 2, ".c") == 0) if (Arg.size() > 2 && Arg.compare(Arg.size() - 2, 2, ".c") == 0)
continue; // don't hash source filename continue; // don't hash source filename
if (Arg.size() > 2 && Arg.compare(Arg.size() - 2, 2, ".i") == 0)
continue; // don't hash source filename (ccache preprocessed)
if (Arg.find("-stop-if-same-hash") != std::string::npos) { if (Arg.find("-stop-if-same-hash") != std::string::npos) {
continue; // also don't hash this (plugin argument) continue; // also don't hash this (plugin argument)
...@@ -196,6 +198,9 @@ private: ...@@ -196,6 +198,9 @@ private:
if (Arg.find("-hash-verbose") != std::string::npos) { if (Arg.find("-hash-verbose") != std::string::npos) {
continue; // also don't hash this (plugin argument) continue; // also don't hash this (plugin argument)
} }
if (Arg.find("-hash-verbose") != std::string::npos) {
continue; // also don't hash this (plugin argument)
}
CommandLineArgs.push_back(Arg); CommandLineArgs.push_back(Arg);
} while (Arg.size()); } while (Arg.size());
......
Supports Markdown
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