math.blas.config: deal with OS X libblas ABI mess
x86-64 libblas uses different ABIs on 10.5 and 10.7, and is broken on 10.6. Modified from patch by Joe Groff.db4
parent
36efd95d12
commit
2dfa80c71e
|
@ -1,4 +1,5 @@
|
||||||
USING: alien.fortran combinators kernel namespaces system ;
|
USING: alien.fortran combinators kernel math namespaces
|
||||||
|
sequences system system-info ;
|
||||||
IN: math.blas.config
|
IN: math.blas.config
|
||||||
|
|
||||||
SYMBOLS: blas-library blas-fortran-abi deploy-blas? ;
|
SYMBOLS: blas-library blas-fortran-abi deploy-blas? ;
|
||||||
|
@ -13,7 +14,17 @@ blas-library [
|
||||||
|
|
||||||
blas-fortran-abi [
|
blas-fortran-abi [
|
||||||
{
|
{
|
||||||
{ [ os macosx? ] [ intel-unix-abi ] }
|
{ [ os macosx? cpu x86.32? and ] [ intel-unix-abi ] }
|
||||||
|
{ [ os macosx? cpu x86.64? and ]
|
||||||
|
[
|
||||||
|
os-version second {
|
||||||
|
{ [ dup 7 >= ] [ f2c-abi ] }
|
||||||
|
{ [ dup 6 = ] [ "The libblas.dylib included in Mac OS X 10.6 is incompatible with Factor. To use the math.blas bindings y
|
||||||
|
ou will need to install a third-party BLAS library and configure Factor. See `\"math.blas.config\" about` for more information." <bad-fortran-abi> ] }
|
||||||
|
[ intel-unix-abi ]
|
||||||
|
} cond nip
|
||||||
|
]
|
||||||
|
}
|
||||||
{ [ os windows? cpu x86.32? and ] [ f2c-abi ] }
|
{ [ os windows? cpu x86.32? and ] [ f2c-abi ] }
|
||||||
{ [ os windows? cpu x86.64? and ] [ gfortran-abi ] }
|
{ [ os windows? cpu x86.64? and ] [ gfortran-abi ] }
|
||||||
! { [ os freebsd? ] [ gfortran-abi ] }
|
! { [ os freebsd? ] [ gfortran-abi ] }
|
||||||
|
|
Loading…
Reference in New Issue