[Driver] Revert D139717 and add -Xparser/-Xcompiler instead
Some macOS projects use -Xparser even if it leads to a -Wunused-command-line-argument warning. It doesn't justify adding a broad Joined `-X` (IgnoredGCCCompat) as GCC doesn't really support these arbitrary `-X` options. Note: `-Xcompiler foo` is a GNU libtool option, not a driver option. It is misused by some ChromeOS packages (but not by Gentoo). Keep it for a while. It seems that GCC < 4.6 reports g++: unrecognized option '-Xfoo' but exit with 0. GCC >= 4.6 reports g++: error: unrecognized option '-Xfoo' and exits with 1. It never supports -Xcompiler or -Xparser, so `IgnoredGCCCompat` is not justified. Differential Revision: https://reviews.llvm.org/D140224
Loading
Please sign in to comment