Author: Stefano Rivera <[email protected]>
Branch:
Changeset: r97158:7fc3484b9993
Date: 2019-08-11 20:49 -0300
http://bitbucket.org/pypy/pypy/changeset/7fc3484b9993/
Log: On GNU/Hurd use the sysconf() method (some day, it'll have SMP...)
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -2542,7 +2542,7 @@
post_include_bits=['RPY_EXTERN int rpy_cpu_count(void);']
# cpu count for linux, windows and mac (+ bsds)
# note that the code is copied from cpython and split up here
-if sys.platform.startswith('linux'):
+if sys.platform.startswith(('linux', 'gnu')):
cpucount_eci = ExternalCompilationInfo(includes=["unistd.h"],
separate_module_sources=["""
RPY_EXTERN int rpy_cpu_count(void) {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit