From ad513102190837328ced5dcb2c6785a0ffbb543f Mon Sep 17 00:00:00 2001 From: Douglas Katzman Date: Wed, 2 Sep 2015 13:42:43 +0000 Subject: [PATCH] [Shave]: pass through more clang options to moviCompile git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246652 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 1 + test/Driver/shave-toolchain.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 53c3c1be7a..75bf7e4041 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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. diff --git a/test/Driver/shave-toolchain.c b/test/Driver/shave-toolchain.c index 133eac924c..1f282d4d4a 100644 --- a/test/Driver/shave-toolchain.c +++ b/test/Driver/shave-toolchain.c @@ -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" -- 2.50.1