Commits

Antonio Cuni  committed e3c3cf3

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

  • Participants
  • Parent commits 8dcf988
  • Branches freebsd-compat

Comments (0)

Files changed (1)

File pypy/jit/backend/detect_cpu.py

                 'i86pc': 'x86',    # Solaris/Intel
                 'x86':   'x86',    # Apple
                 'Power Macintosh': 'ppc',
-                'x86_64': 'x86', 
+                'x86_64': 'x86',
+                'amd64': 'x86'     # freebsd
                 }[mach]
     except KeyError:
         return mach
         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"