]> granicus.if.org Git - clang/commitdiff
ccc: Normalize machine name to i386 for platforms which report the
authorDaniel Dunbar <daniel@zuster.org>
Tue, 27 Jan 2009 19:29:51 +0000 (19:29 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 27 Jan 2009 19:29:51 +0000 (19:29 +0000)
machine as x86_64.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63122 91177308-0d34-0410-b5e6-96231b3b80d8

tools/ccc/ccclib/Driver.py

index 0fe58068ae403f74868aab2106bcee72c3fb9872..095745facc65f8141134532d4be66b4b3b64c877 100644 (file)
@@ -52,6 +52,8 @@ class Driver(object):
         # Normalize names.
         if machine == 'Power Macintosh':
             return 'ppc'
+        if machine == 'x86_64':
+            return 'i386'
         return machine
 
     def getHostSystemName(self):