llvm.ffi: make the binding linux-specific for now

modern-harvey2
Björn Lindqvist 2017-08-09 12:56:35 +02:00
parent 48fc7831e2
commit 3faad21b3d
1 changed files with 7 additions and 6 deletions

View File

@ -1,11 +1,13 @@
! Copyright (C) 2009 Matthew Willis, 2017 Björn Lindqvist ! Copyright (C) 2009 Matthew Willis, 2017 Björn Lindqvist
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.libraries alien.syntax kernel USING: alien alien.c-types alien.libraries alien.syntax combinators
ldcache ; kernel ldcache system ;
IN: llvm.ffi IN: llvm.ffi
<< << "llvm" {
"llvm" "LLVM-3.9" find-so [ cdecl add-library ] [ drop ] if* { [ os linux? ] [ "LLVM-3.9" find-so [ cdecl add-library ] [ drop ] if* ] }
[ drop ]
} cond
>> >>
LIBRARY: llvm LIBRARY: llvm
@ -70,7 +72,6 @@ FUNCTION: LLVMTypeRef LLVMPPCFP128Type ( )
FUNCTION: LLVMTypeRef LLVMVoidType ( ) FUNCTION: LLVMTypeRef LLVMVoidType ( )
FUNCTION: LLVMTypeRef LLVMLabelType ( ) FUNCTION: LLVMTypeRef LLVMLabelType ( )
FUNCTION: LLVMTypeRef LLVMOpaqueType ( )
! ! Integer type ! ! Integer type
FUNCTION: LLVMTypeRef LLVMInt1Type ( ) FUNCTION: LLVMTypeRef LLVMInt1Type ( )
@ -193,4 +194,4 @@ FUNCTION: void LLVMInitializeX86TargetInfo ( )
FUNCTION: void LLVMInitializeX86Target ( ) FUNCTION: void LLVMInitializeX86Target ( )
FUNCTION: void LLVMInitializeX86TargetMC ( ) FUNCTION: void LLVMInitializeX86TargetMC ( )
! Removed symbols: LLVMCreateJITCompiler, LLVMCreateTypeHandle ! Removed symbols: LLVMCreateJITCompiler, LLVMCreateTypeHandle, LLVMOpaqueType