-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-deps.sh
executable file
·37 lines (33 loc) · 1.05 KB
/
build-deps.sh
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
#!/bin/sh -e
dir=$(pwd)
# LLVM
cmake \
--install-prefix "$dir/lib/llvm" \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DLLVM_ENABLE_LIBEDIT:BOOL=OFF \
-DLLVM_ENABLE_LIBPFM:BOOL=OFF \
-DLLVM_ENABLE_LIBXML2:BOOL=OFF \
-DLLVM_ENABLE_TERMINFO:BOOL=OFF \
-DLLVM_ENABLE_ZLIB:BOOL=OFF \
-DLLVM_ENABLE_ZSTD:BOOL=OFF \
-DLLVM_APPEND_VC_REV:BOOL=OFF \
-DLLVM_TARGETS_TO_BUILD:STRING="AArch64;X86" \
-DLLVM_ENABLE_PROJECTS:STRING="lld" \
-Wno-dev \
-B "$dir/deps/llvm/build" \
"$dir/deps/llvm/llvm"
cmake --build "$dir/deps/llvm/build" --config Release
cmake --install "$dir/deps/llvm/build" --config Release
# zstd
cmake \
--install-prefix "$dir/lib/zstd" \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DZSTD_LEGACY_SUPPORT:BOOL=OFF \
-DZSTD_MULTITHREAD_SUPPORT:BOOL=OFF \
-DZSTD_BUILD_PROGRAMS:BOOL=OFF \
-DZSTD_BUILD_SHARED:BOOL=OFF \
-Wno-dev \
-B "$dir/deps/zstd/build/cmake/build" \
"$dir/deps/zstd/build/cmake"
cmake --build "$dir/deps/zstd/build/cmake/build" --config Release
cmake --install "$dir/deps/zstd/build/cmake/build" --config Release