forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_deps_msys.sh
More file actions
48 lines (38 loc) · 869 Bytes
/
Copy pathinstall_deps_msys.sh
File metadata and controls
48 lines (38 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/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-openblas \
mingw-w64-x86_64-clang \
mingw-w64-x86_64-clang-tools-extra \
mingw-w64-x86_64-python2 \
mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-diffutils \
mingw-w64-x86_64-go
pip3 install conan==1.64.1
}
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