Author: Stefano Rivera <[email protected]>
Branch: 
Changeset: r77962:5565f24726f0
Date: 2015-06-08 11:15 -0700
http://bitbucket.org/pypy/pypy/changeset/5565f24726f0/

Log:    vmprof uses x86_64 assembler, so it's only available on x86_64

        Not all 64bit linux platforms.

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -1,3 +1,4 @@
+import os
 import sys
 
 import py
@@ -38,7 +39,7 @@
     "_csv", "cppyy", "_pypyjson"
 ])
 
-if sys.platform.startswith('linux') and sys.maxint > 2147483647:
+if sys.platform.startswith('linux') and os.uname()[4] == 'x86_64':
     working_modules.add('_vmprof')
 
 translation_modules = default_modules.copy()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to