From 0c6be472ce291387cb5259934f5b83f361d02c6c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 11 Sep 2019 19:05:04 -0700 Subject: [PATCH] project: strip -Xclang --- src/project.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/project.cc b/src/project.cc index 0761f291..c358b28c 100644 --- a/src/project.cc +++ b/src/project.cc @@ -90,6 +90,10 @@ struct ProjectProcessor { i++; return true; } + if (arg == "-Xclang") { + i++; + return true; + } return exclude_args.count(arg) || any_of(exclude_globs, [&](const GlobPattern &glob) { return glob.match(arg); });