Author: Stefano Rivera <[email protected]>
Branch: 
Changeset: r71738:e9af47acbea2
Date: 2014-05-27 01:51 +0200
http://bitbucket.org/pypy/pypy/changeset/e9af47acbea2/

Log:    Replace the VFP assert in detect_cpu with a
        ProcessorAutodetectError, so we can use detect_cpu on ARMv4

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
@@ -81,7 +81,9 @@
     #
     if result.startswith('arm'):
         from rpython.jit.backend.arm.detect import detect_float
-        assert detect_float(), 'the JIT-compiler requires a vfp unit'
+        if not detect_float():
+            raise ProcessorAutodetectError(
+                'the JIT-compiler requires a vfp unit')
     #
     return result
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to