summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-22 03:37:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-22 03:37:33 +0000
commit93d7acfcf243c75450eb00af22b483defa1383bc (patch)
treecdd98c2b13cb2e78967fdf2b04c09a82a19caed7 /clang/lib/Driver/Tools.cpp
parent9d92aaabf15cb8f48dd7a2432cc6f0a7a609ab55 (diff)
downloadbcm5719-llvm-93d7acfcf243c75450eb00af22b483defa1383bc.tar.gz
bcm5719-llvm-93d7acfcf243c75450eb00af22b483defa1383bc.zip
Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,
not always added. llvm-svn: 94149
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index d5d6004ac44..afb22a23676 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);
OpenPOWER on IntegriCloud