sbcl: configuration check: GC requires threads

https://sourceforge.net/p/sbcl/mailman/message/58776519/
This commit is contained in:
Hraban Luyat 2024-05-29 09:06:28 -04:00
parent 4a3fc4cf73
commit 636e5933e5

View File

@ -7,7 +7,7 @@
# to get rid of ${glibc} dependency.
, purgeNixReferences ? false
, coreCompression ? true
, markRegionGC ? true
, markRegionGC ? threadSupport
, version
# Set this to a lisp binary to use a custom bootstrap lisp compiler for SBCL.
# Leave as null to use the default. This is useful for local development of
@ -157,6 +157,7 @@ stdenv.mkDerivation (self: rec {
'';
enableFeatures = with lib;
assert assertMsg (markRegionGC -> threadSupport) "SBCL mark region GC requires thread support";
optional threadSupport "sb-thread" ++
optional linkableRuntime "sb-linkable-runtime" ++
optional coreCompression "sb-core-compression" ++