diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-02-04 17:24:47 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-02-04 17:24:47 +0000 |
commit | 2843c1900b6da763885f47d0999e923e7c67fd65 (patch) | |
tree | c47926335ebd710292eb5e491b93017678c18f01 /lib/Driver/Tools.cpp | |
parent | 9acd0d92f4135bfb6a31eaad067b2972d6e1b62c (diff) |
Driver: Fix spurious warning (from -cc1) about unused -fapple-kext on C inputs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index f3d2d4b88b..2cbf43e0e6 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1358,7 +1358,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // these by hand. if (Args.hasArg(options::OPT_mkernel)) { - if (!Args.hasArg(options::OPT_fapple_kext)) + if (!Args.hasArg(options::OPT_fapple_kext) && types::isCXX(InputType)) CmdArgs.push_back("-fapple-kext"); if (!Args.hasArg(options::OPT_fbuiltin)) CmdArgs.push_back("-fno-builtin"); |