зеркало из https://github.com/microsoft/clang-1.git
[driver] i386 kext preprocessor jobs also need their unsupported options
filtered. This happenis when -save-temps is specified. <rdar://problem/10088387> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
b8db7cd9ac
Коммит
4fe4d73bce
|
@ -2888,6 +2888,8 @@ void darwin::Preprocess::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_d_Group);
|
||||
|
||||
RemoveCC1UnsupportedArgs(CmdArgs);
|
||||
|
||||
const char *CC1Name = getCC1Name(Inputs[0].getType());
|
||||
const char *Exec =
|
||||
Args.MakeArgString(getToolChain().GetProgramPath(CC1Name));
|
||||
|
|
|
@ -33,3 +33,10 @@
|
|||
// CHECK-UNSUPPORTED: "-mno-longcall"
|
||||
// CHECK-UNSUPPORTED: "-msoft-float"
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: -Wconstant-logical-operand -save-temps \
|
||||
// RUN: -fapple-kext -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-UNSUPPORTED2 < %t %s
|
||||
|
||||
// CHECK-UNSUPPORTED2: cc1plus"
|
||||
// CHECK-UNSUPPORTED2-NOT: "-Wconstant-logical-operand"
|
||||
|
|
Загрузка…
Ссылка в новой задаче