llvm.ffi: adding macOS location (when using homebrew).

fix-linux
John Benediktsson 2019-12-05 14:15:47 -08:00
parent deb324dee1
commit 6b91f6f774
1 changed files with 3 additions and 2 deletions

View 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