forked from OSchip/llvm-project
Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,
not always added. llvm-svn: 94149
This commit is contained in:
parent
9d92aaabf1
commit
93d7acfcf2
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue