aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-01 20:33:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-01 20:33:11 +0000
commitbf54a06f9b771c2a2730cc63eb89bce0522515b5 (patch)
treedcd8ae096ff43434ac743e95bf25e25409745c24 /lib/Driver/Tools.cpp
parent2add47387d39ee6c40dcb0e9f3d51c27ad1e113c (diff)
Quick and dirty (!) fix to make sure we use powerpc in triples.
- PR3922 - I have a clean solution for this in flight, but it may take a while to come to fruition so we'll take a quick fix for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index e4fff9c831..b8c07cc7a7 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -453,7 +453,14 @@ void gcc::Common::ConstructJob(Compilation &C, const JobAction &JA,
// If using a driver driver, force the arch.
if (getToolChain().getHost().useDriverDriver()) {
CmdArgs.push_back("-arch");
- CmdArgs.push_back(getToolChain().getArchName().c_str());
+
+ // FIXME: Remove these special cases.
+ const char *Str = getToolChain().getArchName().c_str();
+ if (strcmp(Str, "powerpc") == 0)
+ Str = "ppc";
+ else if (strcmp(Str, "powerpc64") == 0)
+ Str = "ppc64";
+ CmdArgs.push_back(Str);
}
if (Output.isPipe()) {