Skip to content

Commit 0b81a89

Browse files
authored
[ColPack] Recompile ColPack without OpenMP (#10857)
1 parent 337322c commit 0b81a89

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

C/ColPack/build_tarballs.jl

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
using BinaryBuilder, Pkg
44

55
name = "ColPack"
6-
version = v"0.4.2"
6+
version = v"0.4.3"
77

88
# Collection of sources required to complete build
99
sources = [
10-
GitSource("https://github.com/amontoison/ColPack.git", "707282d64b11c7f29e87b05df5edca72d31ab05e")
10+
GitSource("https://github.com/amontoison/ColPack.git", "b8487f1430d6a2d4d9704cd8cbbb9cd4c6882761")
1111
]
1212

1313
# Bash recipe for building across all platforms
@@ -18,17 +18,17 @@ autoreconf -vif
1818
1919
mkdir build
2020
cd build
21-
../configure --enable-examples --build=${MACHTYPE} --host=${target}
21+
../configure --disable-openmp --enable-examples --build=${MACHTYPE} --host=${target}
2222
make -j${nproc}
2323
2424
mkdir -p ${bindir}
2525
cp ColPack${exeext} ${bindir}/ColPack${exeext}
2626
27-
if [[ "${target}" == *apple* ]] || [[ "${target}" == *freebsd* ]]; then
28-
LDFLAGS=-lomp
29-
else
30-
LDFLAGS=-lgomp
31-
fi
27+
# if [[ "${target}" == *apple* ]] || [[ "${target}" == *freebsd* ]]; then
28+
# LDFLAGS=-lomp
29+
# else
30+
# LDFLAGS=-lgomp
31+
# fi
3232
${CXX} -shared $(flagon -Wl,--whole-archive) libcolpack.a $(flagon -Wl,--no-whole-archive) ${LDFLAGS} -o ${libdir}/libcolpack.${dlext}
3333
"""
3434

@@ -45,11 +45,12 @@ products = [
4545

4646
# Dependencies that must be installed before this package can be built
4747
dependencies = Dependency[
48-
# For OpenMP we use libomp from `LLVMOpenMP_jll` where we use LLVM as compiler (BSD systems),
48+
Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae"))
49+
# If we recompile ColPack with OpenMP, we use libomp from `LLVMOpenMP_jll` where we use LLVM as compiler (BSD systems),
4950
# and libgomp from `CompilerSupportLibraries_jll` everywhere else.
50-
Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae"); platforms=filter(!Sys.isbsd, platforms)),
51-
Dependency(PackageSpec(name="LLVMOpenMP_jll", uuid="1d63c593-3942-5779-bab2-d838dc0a180e"); platforms=filter(Sys.isbsd, platforms))
51+
# Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae"); platforms=filter(!Sys.isbsd, platforms)),
52+
# Dependency(PackageSpec(name="LLVMOpenMP_jll", uuid="1d63c593-3942-5779-bab2-d838dc0a180e"); platforms=filter(Sys.isbsd, platforms))
5253
]
5354

5455
# Build the tarballs, and possibly a `build.jl` as well.
55-
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version = v"8.1.0", julia_compat="1.6", clang_use_lld=false)
56+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", clang_use_lld=false)

0 commit comments

Comments
 (0)