@@ -12,9 +12,6 @@ version = VersionNumber(ENV["HIGHS_RELEASE"])
1212sources = [GitSource (ENV [" HIGHS_URL" ], ENV [" HIGHS_COMMIT" ])]
1313
1414script = raw """
15- export BUILD_SHARED="ON"
16- export BUILD_STATIC="OFF"
17-
1815cd $WORKSPACE/srcdir/HiGHS
1916
2017# Remove system CMake to use the jll version
@@ -23,19 +20,21 @@ apk del cmake
2320rm -rf build
2421mkdir build
2522
26- # Do fully static build only on Windows
27- if [[ "${BUILD_SHARED}" == "OFF" ]] && [[ "${target}" == *-mingw* ]]; then
28- export CXXFLAGS="-static"
23+ if [[ "${target}" == *-mingw* ]]; then
24+ LBT=blastrampoline-5
25+ else
26+ LBT=blastrampoline
2927fi
3028
3129cmake -S . -B build \
3230 -DCMAKE_INSTALL_PREFIX=${prefix} \
3331 -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
3432 -DCMAKE_BUILD_TYPE=Release \
35- -DBUILD_SHARED_LIBS=${BUILD_SHARED} \
36- -DZLIB_USE_STATIC_LIBS=${BUILD_STATIC} \
37- -DHIPO=ON -DBUILD_SHARED_EXTRAS_LIB=OFF \
38- -DBLAS_LIBRARIES="${libdir}/libopenblas.${dlext}"
33+ -DBUILD_SHARED_LIBS=ON \
34+ -DHIPO=ON \
35+ -DBUILD_SHARED_EXTRAS_LIB=OFF \
36+ -DBLA_VENDOR=blastrampoline \
37+ -DBLAS_LIBRARIES=\" ${LBT}\"
3938
4039if [[ "${target}" == *-linux-* ]]; then
4140 make -C build -j ${nproc}
@@ -62,7 +61,7 @@ platforms = expand_cxxstring_abis(platforms)
6261dependencies = [
6362 Dependency (" CompilerSupportLibraries_jll" ),
6463 Dependency (" Zlib_jll" ),
65- Dependency (" OpenBLAS32_jll " ),
64+ Dependency (" libblastrampoline_jll " ),
6665 HostBuildDependency (PackageSpec (; name= " CMake_jll" )),
6766]
6867
@@ -76,5 +75,5 @@ build_tarballs(
7675 products,
7776 dependencies;
7877 preferred_gcc_version = v " 11" ,
79- julia_compat = " 1.6 " ,
78+ julia_compat = " 1.10 " ,
8079)
0 commit comments