[cfe-commits] r124875 - /cfe/trunk/lib/Driver/Tools.cpp

Daniel Dunbar daniel at zuster.org
Fri Feb 4 09:24:47 PST 2011


Author: ddunbar
Date: Fri Feb  4 11:24:47 2011
New Revision: 124875

URL: http://llvm.org/viewvc/llvm-project?rev=124875&view=rev
Log:
Driver: Fix spurious warning (from -cc1) about unused -fapple-kext on C inputs.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=124875&r1=124874&r2=124875&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Feb  4 11:24:47 2011
@@ -1358,7 +1358,7 @@
   // 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");





More information about the cfe-commits mailing list