1
1
using BinaryProvider
2
2
import Libdl
3
3
4
- version = v " 0.2.8 "
4
+ version = v " 0.2.9 "
5
5
6
6
if arch (platform_key_abi ()) != :x86_64
7
7
@warn " FastTransforms has only been tested on x86_64 architectures."
@@ -16,18 +16,19 @@ print_error() = error(
16
16
)
17
17
18
18
print_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 "
22
22
23
23
# Rationale is as follows: The build is pretty fast, so on Linux it is typically easiest
24
24
# to just use the gcc of the system to build the library and include it. On MacOS, however,
25
25
# we need to actually install a gcc first, because Apple's OS comes only shipped with clang,
26
26
# so here we download the binary.
27
27
ft_build_from_source = get (ENV , " FT_BUILD_FROM_SOURCE" , Sys. isapple () ? " false" : " true" )
28
28
if 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 "
30
30
compiler = Sys. isapple () ? " CC=gcc-8" : " CC=gcc"
31
+ flags = Sys. isapple () ? " FT_USE_APPLEBLAS=1" : Sys. iswindows () ? " FT_FFTW_WITH_COMBINED_THREADS=1" : " "
31
32
script = """
32
33
set -e
33
34
set -x
@@ -40,12 +41,12 @@ if ft_build_from_source == "true"
40
41
git clone -b v$version https://github.com/MikaelSlevinsky/FastTransforms.git FastTransforms
41
42
fi
42
43
cd FastTransforms
43
- make lib $compiler $extra
44
+ $ make lib $compiler $flags
44
45
cd ..
45
46
mv -f FastTransforms/libfasttransforms.$extension libfasttransforms.$extension
46
47
"""
47
48
try
48
- run (` /bin/ bash -c $(script) ` )
49
+ run (` bash -c $(script) ` )
49
50
catch
50
51
print_error ()
51
52
end
0 commit comments