@@ -25,15 +25,15 @@ if [[ "${target}" == x86_64-* ]] && [[ "${target}" != *-apple-* ]] && [[ "${targ
25
25
# For Windows, see https://github.com/ziotom78/Libsharp.jl/issues/3
26
26
export CFLAGS="-DMULTIARCH"
27
27
fi
28
- export CFLAGS="${CFLAGS} -O3"
29
- ./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
28
+ export CFLAGS="${CFLAGS} -std=c99 - O3"
29
+ ./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --enable-openmp
30
30
make -j${nproc}
31
31
make install
32
32
"""
33
33
34
34
# These are the platforms we will build for by default, unless further
35
35
# platforms are passed in on the command line
36
- platforms = supported_platforms (; experimental = true )
36
+ platforms = supported_platforms ()
37
37
38
38
# The products that we will ensure are always built
39
39
products = [
@@ -42,7 +42,10 @@ products = [
42
42
43
43
# Dependencies that must be installed before this package can be built
44
44
dependencies = [
45
- Dependency (PackageSpec (name= " CompilerSupportLibraries_jll" , uuid= " e66e0078-7015-5450-92f7-15fbd957f2ae" )),
45
+ # For OpenMP we use libomp from `LLVMOpenMP_jll` where we use LLVM as compiler (BSD
46
+ # systems), and libgomp from `CompilerSupportLibraries_jll` everywhere else.
47
+ Dependency (PackageSpec (name= " CompilerSupportLibraries_jll" , uuid= " e66e0078-7015-5450-92f7-15fbd957f2ae" ); platforms= filter (! Sys. isbsd, platforms)),
48
+ Dependency (PackageSpec (name= " LLVMOpenMP_jll" , uuid= " 1d63c593-3942-5779-bab2-d838dc0a180e" ); platforms= filter (Sys. isbsd, platforms)),
46
49
]
47
50
48
51
# Build the tarballs, and possibly a `build.jl` as well.
0 commit comments