aboutsummaryrefslogtreecommitdiff
path: root/Driver/Targets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Driver/Targets.cpp')
-rw-r--r--Driver/Targets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/Targets.cpp b/Driver/Targets.cpp
index c463fb9d82..336beb925d 100644
--- a/Driver/Targets.cpp
+++ b/Driver/Targets.cpp
@@ -674,9 +674,9 @@ static inline bool IsX86(const std::string& TT) {
/// CreateTarget - Create the TargetInfoImpl object for the specified target
/// enum value.
static TargetInfoImpl *CreateTarget(const std::string& T) {
- if (T.find("ppc-") == 0)
+ if (T.find("ppc-") == 0 || T.find("powerpc-") == 0)
return new DarwinPPCTargetInfo(T);
- else if (T.find("ppc64-") == 0)
+ else if (T.find("ppc64-") == 0 || T.find("powerpc64-") == 0)
return new DarwinPPC64TargetInfo(T);
else if (T.find("x86_64-") == 0)
return new DarwinX86_64TargetInfo(T);