[pypy-commit] pypy default: only expose supported_xxx flags that are true

bivab noreply at buildbot.pypy.org
Mon May 6 08:12:29 CEST 2013


Author: David Schneider <david.schneider at picle.org>
Branch: 
Changeset: r63869:6eb78b19aeaa
Date: 2013-05-06 08:11 +0200
http://bitbucket.org/pypy/pypy/changeset/6eb78b19aeaa/

Log:	only expose supported_xxx flags that are true

diff --git a/rpython/jit/backend/detect_cpu.py b/rpython/jit/backend/detect_cpu.py
--- a/rpython/jit/backend/detect_cpu.py
+++ b/rpython/jit/backend/detect_cpu.py
@@ -120,7 +120,8 @@
     """NOT_RPYTHON"""
     cpucls = getcpuclass(backend_name)
     return [attr[len('supports_'):] for attr in dir(cpucls)
-                                if attr.startswith('supports_')]
+                            if attr.startswith('supports_')
+                                and getattr(cpucls, attr)]
 
 if __name__ == '__main__':
     print autodetect()


More information about the pypy-commit mailing list