mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
769606cce2
See also: #18304, #18335 Signed-off-by: yangxuan <xuan.yang@zilliz.com> Signed-off-by: yangxuan <xuan.yang@zilliz.com>
52 lines
1.0 KiB
Bash
52 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [[ "${MSYSTEM}" != "MINGW64" ]] ; then
|
|
echo non MINGW64, exit.
|
|
exit 1
|
|
fi
|
|
|
|
pacmanInstall()
|
|
{
|
|
pacman -S --noconfirm --needed \
|
|
git make tar dos2unix zip unzip patch \
|
|
mingw-w64-x86_64-toolchain \
|
|
mingw-w64-x86_64-make \
|
|
mingw-w64-x86_64-ccache \
|
|
mingw-w64-x86_64-cmake \
|
|
mingw-w64-x86_64-boost \
|
|
mingw-w64-x86_64-intel-tbb \
|
|
mingw-w64-x86_64-openblas \
|
|
mingw-w64-x86_64-clang \
|
|
mingw-w64-x86_64-clang-tools-extra \
|
|
mingw-w64-x86_64-python2 \
|
|
mingw-w64-x86_64-diffutils \
|
|
mingw-w64-x86_64-arrow \
|
|
mingw-w64-x86_64-go \
|
|
mingw-w64-x86_64-zstd
|
|
pacman -U --noconfirm \
|
|
https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-rocksdb-6.26.1-1-any.pkg.tar.zst
|
|
}
|
|
|
|
updateKey()
|
|
{
|
|
pacman-key --refresh-keys
|
|
}
|
|
|
|
pacmanInstall || {
|
|
updateKey
|
|
pacmanInstall
|
|
|
|
}
|
|
|
|
|
|
# dummy empty dl, TODO: remove later
|
|
touch a.c && \
|
|
gcc -c a.c && \
|
|
ar rc libdl.a a.o && \
|
|
ranlib libdl.a && \
|
|
cp -fr libdl.a /mingw64/lib && \
|
|
rm -fr a.c a.o libdl.a
|
|
|