@@ -32,20 +32,25 @@ class Ecl < Formula
32
32
depends_on "texinfo" => :build # Apple's is too old
33
33
depends_on "bdw-gc"
34
34
depends_on "gmp"
35
- depends_on "libffi"
35
+ uses_from_macos "libffi" , since : :catalina
36
36
37
37
def install
38
38
ENV . deparallelize
39
39
40
40
# Avoid -flat_namespace usage on macOS
41
41
inreplace "src/configure" , "-flat_namespace -undefined suppress " , "" if OS . mac?
42
42
43
+ libffi_prefix = if MacOS . version >= :catalina
44
+ MacOS . sdk_path
45
+ else
46
+ Formula [ "libffi" ] . opt_prefix
47
+ end
43
48
system "./configure" , "--prefix=#{ prefix } " ,
44
49
"--enable-threads=yes" ,
45
50
"--enable-boehm=system" ,
46
51
"--enable-gmp=system" ,
47
52
"--with-gmp-prefix=#{ Formula [ "gmp" ] . opt_prefix } " ,
48
- "--with-libffi-prefix=#{ Formula [ "libffi" ] . opt_prefix } " ,
53
+ "--with-libffi-prefix=#{ libffi_prefix } " ,
49
54
"--with-libgc-prefix=#{ Formula [ "bdw-gc" ] . opt_prefix } "
50
55
system "make"
51
56
system "make" , "install"
@@ -91,7 +96,7 @@ def install
91
96
@@ -181,10 +181,30 @@
92
97
(defun wt-temp (temp)
93
98
(wt "T" temp))
94
-
99
+
95
100
+(defun wt-fixnum (value &optional vv)
96
101
+ (declare (ignore vv))
97
102
+ (princ value *compiler-output1*)
@@ -113,7 +118,7 @@ def install
113
118
(defun wt-number (value &optional vv)
114
119
+ (declare (ignore vv))
115
120
(wt value))
116
-
121
+
117
122
(defun wt-character (value &optional vv)
118
123
+ (declare (ignore vv))
119
124
;; We do not use the '...' format because this creates objects of type
@@ -124,7 +129,7 @@ def install
124
129
--- a/src/cmp/cmptables.lsp
125
130
+++ b/src/cmp/cmptables.lsp
126
131
@@ -182,7 +182,7 @@
127
-
132
+
128
133
(temp . wt-temp)
129
134
(lcl . wt-lcl-loc)
130
135
- (fixnum-value . wt-number)
0 commit comments