Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSDP] Build without openmp on windows #950

Merged
merged 2 commits into from
Apr 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions C/Coin-OR/CSDP/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ cd $WORKSPACE/srcdir/Csdp*

atomic_patch -p1 ${WORKSPACE}/srcdir/patches/blegat.patch

CFLAGS="-O2 -fPIC -fopenmp -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSEGETTIME -I../include"
CFLAGS="-O2 -fPIC -ansi -Wall -DUSEGETTIME -I../include"
if [[ "${target}" != *mingw* ]]; then
CFLAGS+=" -fopenmp -DUSEOPENMP -DSETNUMTHREADS"
fi
LIBS="-L../lib -lsdp -lopenblas -lm"

if [[ "${nbits}" == 64 ]] && [[ "${target}" != *aarch64* ]]; then
Expand All @@ -40,7 +43,11 @@ if [[ "${target}" == *-apple-* ]]; then
fi

mkdir -p ${libdir}
${CC} -fopenmp -fPIC -shared -Wl,${all_load} libsdp.a -Wl,${noall_load} -o ${libdir}/libcsdp.${dlext} -lgomp -lopenblas -lm
if [[ "${target}" != *mingw* ]]; then
${CC} -fopenmp -fPIC -shared -Wl,${all_load} libsdp.a -Wl,${noall_load} -o ${libdir}/libcsdp.${dlext} -lgomp -lopenblas -lm
else
${CC} -fPIC -shared -Wl,${all_load} libsdp.a -Wl,${noall_load} -o ${libdir}/libcsdp.${dlext} -lopenblas -lm
fi
"""

# These are the platforms we will build for by default, unless further
Expand Down