summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads')
-rw-r--r--dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads b/dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads
new file mode 100644
index 000000000000..100d84059509
--- /dev/null
+++ b/dev-lisp/sbcl/files/0.8.16/customize-target-features.lisp.no-threads
@@ -0,0 +1,19 @@
+;;;; -*- Lisp -*-
+
+;;;; This is the features customization lambda form we will use if the
+;;;; user has "threads" in USE *and* they are building for the x86
+;;;; architecture.
+
+;;;; :sb-futex is dependent on the presence of a Linux 2.6.x kernel.
+;;;; For users of Linux 2.4.x kernels, this is still okay to enable,
+;;;; as SBCL will fall back if the futex system-call is not present.
+
+(lambda (list)
+ (flet ((enable (x)
+ (pushnew x list))
+ (disable (x)
+ (setf list (remove x list))))
+ (disable :sb-thread)
+ (disable :sb-futex)
+ (disable :sb-test))
+ list)