Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,

not always added.

llvm-svn: 94149
This commit is contained in:
Daniel Dunbar 2010-01-22 03:37:33 +00:00
parent 9d92aaabf1
commit 93d7acfcf2
1 changed files with 1 additions and 2 deletions

View File

@ -1877,9 +1877,8 @@ void darwin::Link::AddLinkArgs(const ArgList &Args,
if (!Args.hasArg(options::OPT_dynamiclib)) { if (!Args.hasArg(options::OPT_dynamiclib)) {
AddDarwinArch(Args, CmdArgs); AddDarwinArch(Args, CmdArgs);
// FIXME: Why do this only on this path? // FIXME: Why do this only on this path?
CmdArgs.push_back("-force_cpusubtype_ALL"); Args.AddLastArg(CmdArgs, options::OPT_force__cpusubtype__ALL);
Args.AddLastArg(CmdArgs, options::OPT_bundle); Args.AddLastArg(CmdArgs, options::OPT_bundle);
Args.AddAllArgs(CmdArgs, options::OPT_bundle__loader); Args.AddAllArgs(CmdArgs, options::OPT_bundle__loader);