forked from OSchip/llvm-project
[driver] -mkernel implies -fno-common, so claim the arg to avoid an unused
argument warning. Part of rdar://11120518 llvm-svn: 153470
This commit is contained in:
parent
f27e1c40dd
commit
d9d80e0844
|
|
@ -2401,6 +2401,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
Args.hasArg(options::OPT_fapple_kext)) {
|
Args.hasArg(options::OPT_fapple_kext)) {
|
||||||
if (!Args.hasArg(options::OPT_fcommon))
|
if (!Args.hasArg(options::OPT_fcommon))
|
||||||
CmdArgs.push_back("-fno-common");
|
CmdArgs.push_back("-fno-common");
|
||||||
|
Args.ClaimAllArgs(options::OPT_fno_common);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -fcommon is default, only pass non-default.
|
// -fcommon is default, only pass non-default.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue