[pypy-commit] pypy default: fix

arigo pypy.commits at gmail.com
Tue Feb 16 12:57:03 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r82297:da5cd52da2f8
Date: 2016-02-16 18:56 +0100
http://bitbucket.org/pypy/pypy/changeset/da5cd52da2f8/

Log:	fix

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -40,8 +40,11 @@
 ])
 
 from rpython.jit.backend import detect_cpu
-if detect_cpu.startswith('x86'):
-    working_modules.add('_vmprof')
+try:
+    if detect_cpu.autodetect().startswith('x86'):
+        working_modules.add('_vmprof')
+except detect_cpu.ProcessorAutodetectError:
+    pass
 
 
 translation_modules = default_modules.copy()


More information about the pypy-commit mailing list