diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-04-01 23:03:29 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-04-01 23:03:29 +0000 |
commit | 651f3d44dbae18c74c5f475d7a601d65b07b45c4 (patch) | |
tree | ecf8a5f6263951b2028e3670b3739eaebdb1c237 /lib/Driver/Tools.cpp | |
parent | 70e24fccc8ef4aa8be03a778e9655bfcfa79dd14 (diff) |
Ignore unused --serialize-diagnostics option when using llvm-gcc.
llvm-gcc doesn't handle --serialize-diagnostics so when compiling i386
kernel/kext code with -Werror, you get an error about that option being
unused. Claim the argument to prevent this from breaking builds.
<rdar://problem/11161933>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index f3faeecb47..aaa73c1436 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -3619,6 +3619,9 @@ void darwin::Compile::ConstructJob(Compilation &C, const JobAction &JA, assert(Inputs.size() == 1 && "Unexpected number of inputs!"); + // Silence warning about unused --serialize-diagnostics + Args.ClaimAllArgs(options::OPT__serialize_diags); + types::ID InputType = Inputs[0].getType(); const Arg *A; if ((A = Args.getLastArg(options::OPT_traditional))) |