From: Reid Kleckner Date: Wed, 16 Jul 2014 18:31:25 +0000 (+0000) Subject: Add the --target option to clang-cl and use it to fix a test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9229024daf033d0232bf4dccb967d84a010cd65;p=clang Add the --target option to clang-cl and use it to fix a test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213180 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index f1fc02ec52..3feee6ef18 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -1389,7 +1389,7 @@ def no_system_header_prefix : Joined<["--"], "no-system-header-prefix=">, "system header.">; def : Separate<["--"], "no-system-header-prefix">, Alias; 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">; diff --git a/test/Driver/cl-x86-flags.c b/test/Driver/cl-x86-flags.c index 4ddde7e93b..62083dbceb 100644 --- a/test/Driver/cl-x86-flags.c +++ b/test/Driver/cl-x86-flags.c @@ -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.