11using BinaryProvider
22import Libdl
33
4- version = v " 0.2.8 "
4+ version = v " 0.2.9 "
55
66if arch (platform_key_abi ()) != :x86_64
77 @warn " FastTransforms has only been tested on x86_64 architectures."
@@ -16,18 +16,19 @@ print_error() = error(
1616)
1717
1818print_platform_error (p:: Platform ) = " On $(BinaryProvider. platform_name (p)) , please consider opening a pull request to add support.\n "
19- print_platform_error (:: MacOS ) = " On MacOS\n\t brew install gcc@8 fftw mpfr\n "
20- print_plaftorm_error ( :: Linux ) = " On Linux\n\t sudo apt-get install gcc-8 libblas-dev libopenblas-base libfftw3-dev libmpfr-dev\n "
21- print_plaftorm_error ( :: Windows ) = " On Windows\n\t vcpkg install openblas:x64-windows fftw3[core,threads]:x64-windows mpir:x64-windows mpfr:x64-windows\n "
19+ print_platform_error (p :: MacOS ) = " On MacOS\n\t brew install gcc@8 fftw mpfr\n "
20+ print_platform_error (p :: Linux ) = " On Linux\n\t sudo apt-get install gcc-8 libblas-dev libopenblas-base libfftw3-dev libmpfr-dev\n "
21+ print_platform_error (p :: Windows ) = " On Windows\n\t vcpkg install openblas:x64-windows fftw3[core,threads]:x64-windows mpir:x64-windows mpfr:x64-windows\n "
2222
2323# Rationale is as follows: The build is pretty fast, so on Linux it is typically easiest
2424# to just use the gcc of the system to build the library and include it. On MacOS, however,
2525# we need to actually install a gcc first, because Apple's OS comes only shipped with clang,
2626# so here we download the binary.
2727ft_build_from_source = get (ENV , " FT_BUILD_FROM_SOURCE" , Sys. isapple () ? " false" : " true" )
2828if ft_build_from_source == " true"
29- extra = Sys. isapple () ? " FT_USE_APPLEBLAS=1 " : Sys . iswindows () ? " FT_FFTW_WITH_COMBINED_THREADS=1 " : " "
29+ make = Sys. iswindows () ? " mingw32-make " : " make "
3030 compiler = Sys. isapple () ? " CC=gcc-8" : " CC=gcc"
31+ flags = Sys. isapple () ? " FT_USE_APPLEBLAS=1" : Sys. iswindows () ? " FT_FFTW_WITH_COMBINED_THREADS=1" : " "
3132 script = """
3233 set -e
3334 set -x
@@ -40,12 +41,12 @@ if ft_build_from_source == "true"
4041 git clone -b v$version https://github.com/MikaelSlevinsky/FastTransforms.git FastTransforms
4142 fi
4243 cd FastTransforms
43- make lib $compiler $extra
44+ $ make lib $compiler $flags
4445 cd ..
4546 mv -f FastTransforms/libfasttransforms.$extension libfasttransforms.$extension
4647 """
4748 try
48- run (` /bin/ bash -c $(script) ` )
49+ run (` bash -c $(script) ` )
4950 catch
5051 print_error ()
5152 end
0 commit comments