]> granicus.if.org Git - clang/commitdiff
[Shave]: pass through more clang options to moviCompile
authorDouglas Katzman <dougk@google.com>
Wed, 2 Sep 2015 13:42:43 +0000 (13:42 +0000)
committerDouglas Katzman <dougk@google.com>
Wed, 2 Sep 2015 13:42:43 +0000 (13:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246652 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 53c3c1be7a9c8657cbfa8d0ed94fd744ef6e28ef..75bf7e40417be0f7350d7c05a00c386409629d98 100644 (file)
@@ -9606,6 +9606,7 @@ void tools::SHAVE::Compiler::ConstructJob(Compilation &C, const JobAction &JA,
                    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.
index 133eac924c0b6be06a8e24a4ef50bc8a63acf1d5..1f282d4d4a46656c4cde7d92f2ba41cfeb95fdb7 100644 (file)
@@ -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"