diff options
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 9 |
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()) { |