Add the --target option to clang-cl and use it to fix a test.

llvm-svn: 213180
This commit is contained in:
Reid Kleckner 2014-07-16 18:31:25 +00:00
parent 8250735bb0
commit c8604f65d3
2 changed files with 2 additions and 2 deletions

View File

@ -1389,7 +1389,7 @@ def no_system_header_prefix : Joined<["--"], "no-system-header-prefix=">,
"system header.">;
def : Separate<["--"], "no-system-header-prefix">, Alias<no_system_header_prefix>;
def s : Flag<["-"], "s">;
def target : Joined<["--"], "target=">, Flags<[DriverOption]>,
def target : Joined<["--"], "target=">, Flags<[DriverOption, CoreOption]>,
HelpText<"Generate code for the given target">;
def gcc_toolchain : Joined<["--"], "gcc-toolchain=">, Flags<[DriverOption]>,
HelpText<"Use the gcc toolchain at the given directory">;

View File

@ -5,7 +5,7 @@
// We support -m32 and -m64. We support all x86 CPU feature flags in gcc's -m
// flag space.
// RUN: %clang_cl /Zs /WX -m32 -m64 -msse3 -msse4.1 -mavx -mno-avx \
// RUN: -### -- 2>&1 %s | FileCheck -check-prefix=MFLAGS %s
// RUN: --target=i386-pc-win32 -### -- 2>&1 %s | FileCheck -check-prefix=MFLAGS %s
// MFLAGS-NOT: argument unused during compilation
// -arch:IA32 is no-op.