From 11409d5efa6c4547088f5e2f3c39399faa6fc764 Mon Sep 17 00:00:00 2001
From: Evan Hanson <evhan@foldling.org>
Date: Tue, 28 Sep 2021 09:27:07 +1300
Subject: [PATCH] Omit builtin-features from link files
---
eval.scm | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/eval.scm b/eval.scm
index 9421e83d..31e6e31a 100644
a
|
b
|
|
917 | 917 | irregex library lolevel pathname port posix profiler read-syntax |
918 | 918 | repl scheduler srfi-4 tcp)) |
919 | 919 | |
| 920 | (define-constant builtin-features |
| 921 | '(srfi-30 srfi-46 srfi-61 srfi-62 ; runtime |
| 922 | srfi-0 srfi-2 srfi-8 srfi-9 srfi-11 srfi-15 srfi-16 ; syntax |
| 923 | srfi-17 srfi-26 srfi-31 srfi-55 srfi-87 srfi-88)) ; syntax cont |
| 924 | |
920 | 925 | (define-constant cygwin-default-dynamic-load-libraries '("cygchicken-0")) |
921 | 926 | (define-constant macosx-load-library-extension ".dylib") |
922 | 927 | (define-constant windows-load-library-extension ".dll") |
… |
… |
|
934 | 939 | (define ##sys#load-dynamic-extension default-load-library-extension) |
935 | 940 | |
936 | 941 | (define (chicken.load#core-unit? id) ; used by batch-driver.scm |
937 | | (or (memq id core-units) |
| 942 | (or (memq id builtin-features) |
| 943 | (memq id core-units) |
938 | 944 | (assq id core-unit-requirements))) |
939 | 945 | |
940 | | ; these are actually in unit extras, but that is used by default |
941 | | |
942 | | (define-constant builtin-features |
943 | | '(srfi-30 srfi-46 srfi-61 srfi-62 ; runtime |
944 | | srfi-0 srfi-2 srfi-8 srfi-9 srfi-11 srfi-15 srfi-16 ; syntax |
945 | | srfi-17 srfi-26 srfi-31 srfi-55 srfi-87 srfi-88)) ; syntax cont |
946 | | |
947 | 946 | (define default-dynamic-load-libraries |
948 | 947 | (case (software-version) |
949 | 948 | ((cygwin) cygwin-default-dynamic-load-libraries) |