r246652 - [Shave]: pass through more clang options to moviCompile
Douglas Katzman via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 2 06:42:43 PDT 2015
Author: dougk
Date: Wed Sep 2 08:42:43 2015
New Revision: 246652
URL: http://llvm.org/viewvc/llvm-project?rev=246652&view=rev
Log:
[Shave]: pass through more clang options to moviCompile
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/shave-toolchain.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=246652&r1=246651&r2=246652&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Sep 2 08:42:43 2015
@@ -9606,6 +9606,7 @@ void tools::SHAVE::Compiler::ConstructJo
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});
CmdArgs.push_back("-fno-exceptions"); // Always do this even if unspecified.
Modified: cfe/trunk/test/Driver/shave-toolchain.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/shave-toolchain.c?rev=246652&r1=246651&r2=246652&view=diff
==============================================================================
--- cfe/trunk/test/Driver/shave-toolchain.c (original)
+++ cfe/trunk/test/Driver/shave-toolchain.c Wed Sep 2 08:42:43 2015
@@ -22,7 +22,7 @@
// INCLUDES: "-iquote" "quotepath" "-isystem" "syspath"
// RUN: %clang -target shave -c -### %s -g -fno-inline-functions \
-// RUN: -fno-inline-functions-called-once -Os -Wall \
-// RUN: -ffunction-sections 2>&1 | FileCheck %s -check-prefix=F_G_O_W_OPTIONS
-// F_G_O_W_OPTIONS: "-g" "-fno-inline-functions" "-fno-inline-functions-called-once"
-// F_G_O_W_OPTIONS: "-Os" "-Wall" "-ffunction-sections"
+// RUN: -fno-inline-functions-called-once -Os -Wall -MF dep.d \
+// RUN: -ffunction-sections 2>&1 | FileCheck %s -check-prefix=PASSTHRU_OPTIONS
+// PASSTHRU_OPTIONS: "-g" "-fno-inline-functions" "-fno-inline-functions-called-once"
+// PASSTHRU_OPTIONS: "-Os" "-Wall" "-MF" "dep.d" "-ffunction-sections"
More information about the cfe-commits
mailing list