mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
2e73e982c5
Originally pypy did not build on FreeBSD due to build failure in rvmprof. In order to build it on FreeBSD (and OpenBSD) you have to disable rvmprof during build process. This is what a previous patch [1][2] did to enable building on FreeBSD. This is a patch obtained from upstream [3] that actually solves the rvmprof build problem which enables building pypy/pypy3 on FreeBSD with rvmprof enabled. [1] https://svnweb.freebsd.org/changeset/ports/473994 [2] https://reviews.freebsd.org/D16138 [3] https://bitbucket.org/pypy/pypy/issues/2853/build-fails-on-freebsd-11x-x64#comment-46813575 Reviewed by: koobs, miwi, dbn Approved by: miwi, dbn Differential Revision: https://reviews.freebsd.org/D16378
12 lines
481 B
Python
12 lines
481 B
Python
--- rpython/rlib/rvmprof/cintf.py.orig 2018-04-24 06:04:29 UTC
|
|
+++ rpython/rlib/rvmprof/cintf.py
|
|
@@ -17,7 +17,7 @@ class VMProfPlatformUnsupported(Exceptio
|
|
|
|
# vmprof works only on x86 for now
|
|
IS_SUPPORTED = False
|
|
-if sys.platform in ('darwin', 'linux', 'linux2'):
|
|
+if sys.platform in ('darwin', 'linux', 'linux2') or sys.platform.startswith('freebsd'):
|
|
try:
|
|
IS_SUPPORTED = detect_cpu.autodetect().startswith('x86')
|
|
except detect_cpu.ProcessorAutodetectError:
|