From: Chad Rosier Date: Mon, 26 Mar 2012 21:29:17 +0000 (+0000) Subject: [driver] -mkernel implies -fno-builtin, so claim the arg to avoid an unused X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d26550ba88d2c15292b3f290d6eadec83749e95;p=clang [driver] -mkernel implies -fno-builtin, so claim the arg to avoid an unused argument warning. Part of rdar://11120518 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153469 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c0767c372f..4a69fc54ee 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2076,6 +2076,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-fapple-kext"); if (!Args.hasArg(options::OPT_fbuiltin)) CmdArgs.push_back("-fno-builtin"); + Args.ClaimAllArgs(options::OPT_fno_builtin); } // -fbuiltin is default. else if (!Args.hasFlag(options::OPT_fbuiltin, options::OPT_fno_builtin))