Author: David Schneider <david.schnei...@picle.org> Branch: Changeset: r64381:8611029d42e8 Date: 2013-05-21 14:52 +0200 http://bitbucket.org/pypy/pypy/changeset/8611029d42e8/
Log: platform.machine seems to be rpython enough to go through translation, but it caches the result coming from the host machine. Use os.uname instead diff --git a/rpython/memory/gc/env.py b/rpython/memory/gc/env.py --- a/rpython/memory/gc/env.py +++ b/rpython/memory/gc/env.py @@ -132,7 +132,7 @@ # ---------- Linux2 ---------- def get_L2cache_linux2(): - arch = platform.machine() + arch = os.uname()[4] # machine if arch.endswith('86') or arch == 'x86_64': return get_L2cache_linux2_cpuinfo() if arch in ('alpha', 'ppc', 'ppc64'): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit