]> gitweb.factorcode.org Git - factor.git/commitdiff
llvm.ffi: adding macOS location (when using homebrew).
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 5 Dec 2019 22:15:47 +0000 (14:15 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 5 Dec 2019 22:16:12 +0000 (14:16 -0800)
extra/llvm/ffi/ffi.factor

index 5e11cc1d4ba0bf11fd6b1c4fc4b4a856de7f0414..9709dc21c6d6a554ff33860a4e30f90947a26fde 100644 (file)
@@ -5,9 +5,10 @@ kernel ldcache system ;
 IN: llvm.ffi
 
 << "llvm" {
-    { [ os linux? ] [ "LLVM-3.9" find-so [ cdecl add-library ] [ drop ] if* ] }
+    { [ os linux? ] [ "LLVM-3.9" find-so ] }
+    { [ os macosx? ] [ "/usr/local/opt/llvm/lib/libLLVM.dylib" ] }
     [ drop ]
-} cond
+} cond [ cdecl add-library ] when*
 >>
 
 LIBRARY: llvm