-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-deps.ps1
60 lines (49 loc) · 1.4 KB
/
build-deps.ps1
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
48
49
50
51
52
53
54
55
56
57
58
59
60
# LLVM
cmake `
--install-prefix "$PSScriptRoot/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 "$PSScriptRoot/deps/llvm/build" `
"$PSScriptRoot/deps/llvm/llvm"
if ($LASTEXITCODE -ne 0) {
exit 1
}
cmake --build "$PSScriptRoot/deps/llvm/build" --config Release
if ($LASTEXITCODE -ne 0) {
exit 1
}
cmake --install "$PSScriptRoot/deps/llvm/build" --config Release
if ($LASTEXITCODE -ne 0) {
exit 1
}
# zstd
cmake `
--install-prefix "$PSScriptRoot/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 "$PSScriptRoot/deps/zstd/build/cmake/build" `
"$PSScriptRoot/deps/zstd/build/cmake"
if ($LASTEXITCODE -ne 0) {
exit 1
}
cmake --build "$PSScriptRoot/deps/zstd/build/cmake/build" --config Release
if ($LASTEXITCODE -ne 0) {
exit 1
}
cmake --install "$PSScriptRoot/deps/zstd/build/cmake/build" --config Release
if ($LASTEXITCODE -ne 0) {
exit 1
}