Commit 81949ce4 authored by Stefano Rivera's avatar Stefano Rivera
Browse files

Raise ProcessorAutodetectError for unknown machine names

Previously this function was only used for the JIT, so it only had to support
machines that the JIT supports. Now, it's used by rpython.rlib.rawstorage, and
should raise an appropriate exception, rather than KeyError, on unknown
parent 01d8c6a4682b
......@@ -63,7 +63,10 @@ def detect_model_from_host_platform():
'AMD64': MODEL_X86, # win64
'armv7l': MODEL_ARM,
'armv6l': MODEL_ARM,
if result is None:
raise ProcessorAutodetectError, "unknown machine name %s" % mach
if result.startswith('x86'):
if sys.maxint == 2**63-1:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment