[pypy-svn] r53360 - pypy/branch/jit-hotpath/pypy/jit/codegen

fijal at codespeak.net fijal at codespeak.net
Fri Apr 4 21:56:02 CEST 2008


Author: fijal
Date: Fri Apr  4 21:56:01 2008
New Revision: 53360

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/detect_cpu.py
Log:
revert last checkin here


Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/detect_cpu.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/detect_cpu.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/detect_cpu.py	Fri Apr  4 21:56:01 2008
@@ -7,8 +7,6 @@
 class ProcessorAutodetectError(Exception):
     pass
 
-x86_backend = 'i386'
-
 def autodetect():
     mach = None
     try:
@@ -19,7 +17,7 @@
     if not mach:
         platform = sys.platform.lower()
         if platform.startswith('win'):   # assume an Intel Windows
-            return x86_backend
+            return 'i386'
         # assume we have 'uname'
         mach = os.popen('uname -m', 'r').read().strip()
         if not mach:
@@ -27,12 +25,12 @@
     if mach == 'x86_64' and sys.maxint == 2147483647:
         mach = 'x86'     # it's a 64-bit processor but in 32-bits mode, maybe
     try:
-        return {'i386': x86_backend,
-                'i486': x86_backend,
-                'i586': x86_backend,
-                'i686': x86_backend,
-                'i86pc': x86_backend,    # Solaris/Intel
-                'x86':   x86_backend,    # Apple
+        return {'i386': 'i386',
+                'i486': 'i386',
+                'i586': 'i386',
+                'i686': 'i386',
+                'i86pc': 'i386',    # Solaris/Intel
+                'x86':   'i386',    # Apple
                 'Power Macintosh': 'ppc', 
                 }[mach]
     except KeyError:



More information about the Pypy-commit mailing list