forked from OSchip/llvm-project
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> llvm-svn: 153854
This commit is contained in:
parent
219173a1be
commit
0090df24d7
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue