sbcl: better thread support and arm detection
This commit is contained in:
parent
08cf0dcb5c
commit
f6807dba60
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv, fetchurl, writeText, sbclBootstrap
|
{ stdenv, fetchurl, writeText, sbclBootstrap
|
||||||
, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
|
, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
|
||||||
|
, threadSupport ? (stdenv.isi686 || stdenv.isx86_64)
|
||||||
# Meant for sbcl used for creating binaries portable to non-NixOS via save-lisp-and-die.
|
# Meant for sbcl used for creating binaries portable to non-NixOS via save-lisp-and-die.
|
||||||
# Note that the created binaries still need `patchelf --set-interpreter ...`
|
# Note that the created binaries still need `patchelf --set-interpreter ...`
|
||||||
# to get rid of ${glibc} dependency.
|
# to get rid of ${glibc} dependency.
|
||||||
|
@ -23,10 +24,11 @@ stdenv.mkDerivation rec {
|
||||||
(pushnew x features))
|
(pushnew x features))
|
||||||
(disable (x)
|
(disable (x)
|
||||||
(setf features (remove x features))))
|
(setf features (remove x features))))
|
||||||
#-arm
|
''
|
||||||
(enable :sb-thread)
|
+ stdenv.lib.optionalString threadSupport "(enable :sb-thread)"
|
||||||
#+arm
|
+ stdenv.lib.optionalString stdenv.isArm "(enable :arm)"
|
||||||
(enable :arm))) " > customize-target-features.lisp
|
+ ''
|
||||||
|
)) " > customize-target-features.lisp
|
||||||
|
|
||||||
pwd
|
pwd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue