[pypy-svn] r35601 - pypy/dist/pypy/jit/codegen
arigo at codespeak.net
arigo at codespeak.net
Mon Dec 11 22:56:42 CET 2006
Author: arigo
Date: Mon Dec 11 22:56:40 2006
New Revision: 35601
Modified:
pypy/dist/pypy/jit/codegen/detect_cpu.py
Log:
(pedronis, arigo)
Trying to work around uname pretending we're on a x86_64 when
we're really running in 32-bit compatibility mode.
Modified: pypy/dist/pypy/jit/codegen/detect_cpu.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/detect_cpu.py (original)
+++ pypy/dist/pypy/jit/codegen/detect_cpu.py Mon Dec 11 22:56:40 2006
@@ -19,6 +19,8 @@
mach = os.popen('uname -m', 'r').read().strip()
if not mach:
raise ProcessorAutodetectError, "cannot run 'uname -m'"
+ 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': 'i386',
'i486': 'i386',
More information about the Pypy-commit
mailing list