forked from OSchip/llvm-project
parent
fbe439f8c0
commit
c0fbccc885
|
@ -264,7 +264,7 @@ def Xassembler : Separate<["-"], "Xassembler">,
|
|||
HelpText<"Pass <arg> to the assembler">, MetaVarName<"<arg>">;
|
||||
def Xclang : Separate<["-"], "Xclang">,
|
||||
HelpText<"Pass <arg> to the clang compiler">, MetaVarName<"<arg>">,
|
||||
Flags<[DriverOption]>;
|
||||
Flags<[DriverOption, CoreOption]>;
|
||||
def Xlinker : Separate<["-"], "Xlinker">, Flags<[LinkerInput, RenderAsInput]>,
|
||||
HelpText<"Pass <arg> to the linker">, MetaVarName<"<arg>">;
|
||||
def Xpreprocessor : Separate<["-"], "Xpreprocessor">,
|
||||
|
|
|
@ -103,3 +103,9 @@
|
|||
// RUN: %clang_cl /Zs /Gm /Gm- /GS /Gy /Gy- /GZ -- %s 2>&1
|
||||
// RUN: %clang_cl /Zs /RTC1 /wfoo /Zc:wchar_t- -- %s 2>&1
|
||||
// RUN: %clang_cl /Zs /ZI /Zi -- %s 2>&1
|
||||
|
||||
|
||||
// We support -Xclang for forwarding options to cc1.
|
||||
// RUN: %clang_cl -Xclang hellocc1 -### -- %s 2>&1 | FileCheck -check-prefix=Xclang %s
|
||||
// Xclang: "-cc1"
|
||||
// Xclang: "hellocc1"
|
||||
|
|
Loading…
Reference in New Issue