From 3faad21b3d02fe81a2c0fae13ed14ad6652accc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Wed, 9 Aug 2017 12:56:35 +0200 Subject: [PATCH] llvm.ffi: make the binding linux-specific for now --- extra/llvm/ffi/ffi.factor | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/extra/llvm/ffi/ffi.factor b/extra/llvm/ffi/ffi.factor index 05495bb1e2..9bf9af5bdd 100644 --- a/extra/llvm/ffi/ffi.factor +++ b/extra/llvm/ffi/ffi.factor @@ -1,11 +1,13 @@ ! Copyright (C) 2009 Matthew Willis, 2017 Björn Lindqvist ! See http://factorcode.org/license.txt for BSD license. -USING: alien alien.c-types alien.libraries alien.syntax kernel -ldcache ; +USING: alien alien.c-types alien.libraries alien.syntax combinators +kernel ldcache system ; IN: llvm.ffi -<< -"llvm" "LLVM-3.9" find-so [ cdecl add-library ] [ drop ] if* +<< "llvm" { + { [ os linux? ] [ "LLVM-3.9" find-so [ cdecl add-library ] [ drop ] if* ] } + [ drop ] +} cond >> LIBRARY: llvm @@ -70,7 +72,6 @@ FUNCTION: LLVMTypeRef LLVMPPCFP128Type ( ) FUNCTION: LLVMTypeRef LLVMVoidType ( ) FUNCTION: LLVMTypeRef LLVMLabelType ( ) -FUNCTION: LLVMTypeRef LLVMOpaqueType ( ) ! ! Integer type FUNCTION: LLVMTypeRef LLVMInt1Type ( ) @@ -193,4 +194,4 @@ FUNCTION: void LLVMInitializeX86TargetInfo ( ) FUNCTION: void LLVMInitializeX86Target ( ) FUNCTION: void LLVMInitializeX86TargetMC ( ) -! Removed symbols: LLVMCreateJITCompiler, LLVMCreateTypeHandle +! Removed symbols: LLVMCreateJITCompiler, LLVMCreateTypeHandle, LLVMOpaqueType