From ff4ee614b9a83ef88a4de1e768f9ae3d841249c4 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 183acf71..bb48e995 100644 --- a/src/project.cc +++ b/src/project.cc @@ -102,6 +102,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); });