[cfe-commits] r94149 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Thu Jan 21 19:37:33 PST 2010
Author: ddunbar
Date: Thu Jan 21 21:37:33 2010
New Revision: 94149
URL: http://llvm.org/viewvc/llvm-project?rev=94149&view=rev
Log:
Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,
not always added.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=94149&r1=94148&r2=94149&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Jan 21 21:37:33 2010
@@ -1877,9 +1877,8 @@
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);
More information about the cfe-commits
mailing list