]> granicus.if.org Git - clang/commitdiff
Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,
authorDaniel Dunbar <daniel@zuster.org>
Fri, 22 Jan 2010 03:37:33 +0000 (03:37 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 22 Jan 2010 03:37:33 +0000 (03:37 +0000)
not always added.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index d5d6004ac44c61c6b9a5ea880c13e495289d761d..afb22a236767eefe7a8e7e35a13e974deb939b7a 100644 (file)
@@ -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);