]> granicus.if.org Git - clang/commitdiff
[Myriad]: pass the 'std=' option to moviCompile
authorDouglas Katzman <dougk@google.com>
Mon, 16 Nov 2015 15:38:40 +0000 (15:38 +0000)
committerDouglas Katzman <dougk@google.com>
Mon, 16 Nov 2015 15:38:40 +0000 (15:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253213 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/myriad-toolchain.c

index 0870df4a34a557389fade062796c3b60c6e09a25..e39759fe215c5179b4fd77b22e86d01d54efa19e 100644 (file)
@@ -9890,7 +9890,7 @@ void tools::SHAVE::Compiler::ConstructJob(Compilation &C, const JobAction &JA,
   // 'f' flags, optimize flags, and warning options.
   // These are spelled the same way in clang and moviCompile.
   Args.AddAllArgs(CmdArgs, {options::OPT_I_Group, options::OPT_clang_i_Group,
-                            options::OPT_D, options::OPT_U,
+                            options::OPT_std_EQ, options::OPT_D, options::OPT_U,
                             options::OPT_f_Group, options::OPT_f_clang_Group,
                             options::OPT_g_Group, options::OPT_M_Group,
                             options::OPT_O_Group, options::OPT_W_Group});
index 054fe34142ad04a74283eb44adf32ff3eac0be25..e2222aced34aeeba272709c903c091b2f70cbf09 100644 (file)
 // RUN:   | FileCheck %s -check-prefix=MDMF
 // MDMF: "-S" "-MD" "-MF" "dep.d" "-MT" "foo.o"
 
+// RUN: %clang -target shave-myriad -std=gnu++11 -S %s -o foo.o -### 2>&1 \
+// RUN:   | FileCheck %s -check-prefix=STDEQ
+// STDEQ: "-mcpu=myriad2" "-S" "-std=gnu++11"
+
 // RUN: %clang -target sparc-myriad -### --driver-mode=g++ %s 2>&1 | FileCheck %s --check-prefix=STDLIBCXX
 // STDLIBCXX: "-lstdc++" "-lc" "-lgcc"