summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-11-08 03:38:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-11-08 03:38:26 +0000
commitc3bd9f5c50814e930bc150ca3f6754919ac18d96 (patch)
treec239bf50010a8c2af9ebbbe393e670b62a512f93 /clang/lib/Driver/Driver.cpp
parent2ffcf43a135a522f966cf03350b65aed6c9a40f3 (diff)
downloadbcm5719-llvm-c3bd9f5c50814e930bc150ca3f6754919ac18d96.tar.gz
bcm5719-llvm-c3bd9f5c50814e930bc150ca3f6754919ac18d96.zip
Driver/Darwin: The -arch argument values aren't exactly the arch names from a
triple. - Translate the special case of powerpc to its expected -arch name. llvm-svn: 167571
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 0c1641007a5..7d63bf4ae65 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -806,7 +806,7 @@ void Driver::BuildUniversalActions(const ToolChain &TC,
// When there is no explicit arch for this platform, make sure we still bind
// the architecture (to the default) so that -Xarch_ is handled correctly.
if (!Archs.size())
- Archs.push_back(Args.MakeArgString(TC.getArchName()));
+ Archs.push_back(Args.MakeArgString(TC.getDefaultUniversalArchName()));
// FIXME: We killed off some others but these aren't yet detected in a
// functional manner. If we added information to jobs about which "auxiliary"
OpenPOWER on IntegriCloud