Fix: ignore C++ standard library headers in depend (#7578)

This commit is contained in:
glx22 2019-05-10 14:22:07 +02:00 committed by GitHub
parent be53ef24c1
commit 47fdbdd324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -507,6 +507,9 @@ private:
*/
const char *GeneratePath(const char *dirname, const char *filename, bool local)
{
/* Ignore C++ standard library headers. */
if (strchr(filename, '.') == nullptr) return nullptr;
if (local) {
if (access(filename, R_OK) == 0) return strdup(filename);