[pypy-svn] r79619 - pypy/branch/freebsd-compat/pypy/jit/backend

antocuni at codespeak.net antocuni at codespeak.net
Mon Nov 29 09:30:12 CET 2010


Author: antocuni
Date: Mon Nov 29 09:30:10 2010
New Revision: 79619

Modified:
   pypy/branch/freebsd-compat/pypy/jit/backend/detect_cpu.py
Log:
try to detect the cpu correctly both on freebsd and other platforms. This is a half-blind checkin, as I cannot try it on freebsd


Modified: pypy/branch/freebsd-compat/pypy/jit/backend/detect_cpu.py
==============================================================================
--- pypy/branch/freebsd-compat/pypy/jit/backend/detect_cpu.py	(original)
+++ pypy/branch/freebsd-compat/pypy/jit/backend/detect_cpu.py	Mon Nov 29 09:30:10 2010
@@ -31,7 +31,8 @@
                 'i86pc': 'x86',    # Solaris/Intel
                 'x86':   'x86',    # Apple
                 'Power Macintosh': 'ppc',
-                'x86_64': 'x86', 
+                'x86_64': 'x86',
+                'amd64': 'x86'     # freebsd
                 }[mach]
     except KeyError:
         return mach
@@ -65,7 +66,7 @@
         return "pypy.jit.backend.x86.runner", "CPU"
     elif backend_name == 'x86-without-sse2':
         return "pypy.jit.backend.x86.runner", "CPU386_NO_SSE2"
-    elif backend_name == 'amd64_64':
+    elif backend_name == 'x86_64':
         return "pypy.jit.backend.x86.runner", "CPU_X86_64"
     elif backend_name == 'cli':
         return "pypy.jit.backend.cli.runner", "CliCPU"



More information about the Pypy-commit mailing list