diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-08-13 23:48:55 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-08-13 23:48:55 +0000 |
commit | a544aeece3e16296bdbbc9ee32053fac9616f85b (patch) | |
tree | 14306a6c38e7113c04aa2923991324ffc37f1a7d /lib/Driver/ToolChains.cpp | |
parent | cc52a0688f46cd04dd6b4670b304cbe82e3018c0 (diff) |
Reject -mkernel for i386/Darwin C++ code; fall back to llvm-gcc instead.
Since -mkernel implies -fapple-kext, this just extends the current behavior
for -fapple-kext to apply for -mkernel as well. Radar 9933387.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index f34423b278..9344b65247 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -211,7 +211,8 @@ Tool &Darwin::SelectTool(const Compilation &C, const JobAction &JA, types::isCXX(Inputs[0]->getType()) && getTriple().getOS() == llvm::Triple::Darwin && getTriple().getArch() == llvm::Triple::x86 && - C.getArgs().getLastArg(options::OPT_fapple_kext)) + (C.getArgs().getLastArg(options::OPT_fapple_kext) || + C.getArgs().getLastArg(options::OPT_mkernel))) Key = JA.getKind(); else Key = Action::AnalyzeJobClass; |