pkgsrc-wip/cyclone/Makefile

24 lines
631 B
Makefile
Raw Normal View History

# $NetBSD$
GITHUB_PROJECT= cyclone-bootstrap
GITHUB_TAG= v0.24
DISTNAME= ${GITHUB_TAG}
PKGNAME= cyclone-${DISTNAME:S,^v,,}
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GITHUB:=justinethier/}
DIST_SUBDIR= ${GITHUB_PROJECT}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://justinethier.github.io/cyclone/
COMMENT= Scheme-to-C compiler
LICENSE= mit
WRKSRC= ${WRKDIR}/cyclone-bootstrap-${DISTNAME:S,^v,,}
USE_TOOLS+= gmake pkg-config
PKGCONFIG_OVERRIDE+= third-party/libtommath-1.2.0/libtommath.pc.in
.include "../../devel/concurrencykit/buildlink3.mk"
cyclone: update to cyclone-0.14 pkgsrc changes: use pkgsrc libtommath instead of the internal copy. cyclone-0.13 was not released. = Changelog == 0.14 - February 11, 2020 Cyclone now automatically relocates any stack objects when performing a mutation. This prevents a whole range of race conditions that had previously been possible in multithreaded application code. And since this work is done by the Cyclone runtime no special code needs to be added to your applications. Special thanks to Daniel Mendler, whose discussions were the inspiration for these changes. Some background: There was a long-standing issue where a mutation (via `set-car!`, `vector-set!`, `set!`, etc) could allow a global object on the heap to reference objects on a thread's local stack. This is problematic because threads periodically relocate objects from their stack, and for performance reasons these objects are moved without any coordination between threads. Thus it is critical that objects on the stack are only used by the thread that owns them. In the past we provided functions such as `make-shared` that could be called from application code to guarantee safety. However, this approach is error-prone and asks too much of anyone using Cyclone for multithreaded development. The proper solution is for Cyclone to avoid this situation in the first place. Other Features - Added `CYC_HIGH_RES_TIMERS` to the runtime code to allow logging of timer information for the GC. Note this can be passed to the C compiler via the `-D` option.
2020-02-11 22:03:28 +00:00
.include "../../math/ltm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"