chore: these flags should no longer appear in the wild
@@ -189,7 +189,6 @@ std::vector<std::string> GCCArgsToClangArgs(
"|-W(no-)?(error=)?unused-but-set-parameter"
"|-W(no-)?(error=)?unused-but-set-variable"
"|-W(no-)?(error=)?unused-local-typedefs"
- "|-Xgcc-only=.*"
"|-enable-libstdcxx-debug"
"|-f(no-)?align-functions.*"
"|-f(no-)?asynchronous-unwind-tables"
@@ -367,11 +366,9 @@ std::vector<std::string> ClangArgsToGCCArgs(
// It's important to remove the matches that have followers first -- those
// followers might match one of the flag regular expressions, and removing
// just the follower completely changes the semantics of the command.
- return StripPrefix(
- "-Xgcc-only=",
- CopyOmittingMatches(unsupported_args_re,
+ return CopyOmittingMatches(unsupported_args_re,
CopyOmittingMatchesAndFollowers(
- unsupported_args_with_values_re, clang_args)));
+ unsupported_args_with_values_re, clang_args));
}
std::vector<std::string> AdjustClangArgsForAddressSanitizer(
