project: strip -Xclang <arg>

This commit is contained in:
Fangrui Song 2019-09-11 19:05:04 -07:00
parent 3865a09447
commit ff4ee614b9

View File

@ -102,6 +102,10 @@ struct ProjectProcessor {
i++; i++;
return true; return true;
} }
if (arg == "-Xclang") {
i++;
return true;
}
return exclude_args.count(arg) || return exclude_args.count(arg) ||
any_of(exclude_globs, any_of(exclude_globs,
[&](const GlobPattern &glob) { return glob.match(arg); }); [&](const GlobPattern &glob) { return glob.match(arg); });