diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index d5d6004ac44c..afb22a236767 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1877,9 +1877,8 @@ void darwin::Link::AddLinkArgs(const ArgList &Args, if (!Args.hasArg(options::OPT_dynamiclib)) { AddDarwinArch(Args, CmdArgs); - // 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.AddAllArgs(CmdArgs, options::OPT_bundle__loader);