|
9 | 9 | # option. This file may not be copied, modified, or distributed
|
10 | 10 | # except according to those terms.
|
11 | 11 |
|
| 12 | +# ignore-tidy-linelength |
| 13 | + |
12 | 14 | set -ex
|
13 | 15 | source shared.sh
|
14 | 16 |
|
15 | 17 | # Download sources
|
16 | 18 | SRCS=(
|
17 |
| - "https://fuchsia.googlesource.com/magenta magenta ac69119" |
18 |
| - "https://fuchsia.googlesource.com/third_party/llvm llvm 5463083" |
19 |
| - "https://fuchsia.googlesource.com/third_party/clang llvm/tools/clang 4ff7b4b" |
20 |
| - "https://fuchsia.googlesource.com/third_party/lld llvm/tools/lld fd465a3" |
21 |
| - "https://fuchsia.googlesource.com/third_party/lldb llvm/tools/lldb 6bb11f8" |
22 |
| - "https://fuchsia.googlesource.com/third_party/compiler-rt llvm/runtimes/compiler-rt 52d4ecc" |
23 |
| - "https://fuchsia.googlesource.com/third_party/libcxx llvm/runtimes/libcxx e891cc8" |
24 |
| - "https://fuchsia.googlesource.com/third_party/libcxxabi llvm/runtimes/libcxxabi f0f0257" |
25 |
| - "https://fuchsia.googlesource.com/third_party/libunwind llvm/runtimes/libunwind 50bddc1" |
| 19 | + "https://fuchsia.googlesource.com/magenta magenta d17073dc8de344ead3b65e8cc6a12280dec38c84" |
| 20 | + "https://llvm.googlesource.com/llvm llvm 3f58a16d8eec385e2b3ebdfbb84ff9d3bf27e025" |
| 21 | + "https://llvm.googlesource.com/clang llvm/tools/clang 727ea63e6e82677f6e10e05e08bc7d6bdbae3111" |
| 22 | + "https://llvm.googlesource.com/lld llvm/tools/lld a31286c1366e5e89b8872803fded13805a1a084b" |
| 23 | + "https://llvm.googlesource.com/lldb llvm/tools/lldb 0b2384abec4cb99ad66687712e07dee4dd9d187e" |
| 24 | + "https://llvm.googlesource.com/compiler-rt llvm/runtimes/compiler-rt 9093a35c599fe41278606a20b51095ea8bd5a081" |
| 25 | + "https://llvm.googlesource.com/libcxx llvm/runtimes/libcxx 607e0c71ec4f7fd377ad3f6c47b08dbe89f66eaa" |
| 26 | + "https://llvm.googlesource.com/libcxxabi llvm/runtimes/libcxxabi 0a3a1a8a5ca5ef69e0f6b7d5b9d13e63e6fd2c19" |
| 27 | + "https://llvm.googlesource.com/libunwind llvm/runtimes/libunwind e128003563d99d9ee62247c4cee40f07d21c03e3" |
26 | 28 | )
|
27 | 29 |
|
28 | 30 | fetch() {
|
29 | 31 | mkdir -p $2
|
30 | 32 | pushd $2 > /dev/null
|
31 |
| - curl -sL $1/+archive/$3.tar.gz | tar xzf - |
| 33 | + git init |
| 34 | + git remote add origin $1 |
| 35 | + git fetch --depth=1 origin $3 |
| 36 | + git reset --hard FETCH_HEAD |
32 | 37 | popd > /dev/null
|
33 | 38 | }
|
34 | 39 |
|
35 | 40 | for i in "${SRCS[@]}"; do
|
36 | 41 | fetch $i
|
37 | 42 | done
|
38 | 43 |
|
| 44 | +# Remove this once https://reviews.llvm.org/D28791 is resolved |
| 45 | +cd llvm/runtimes/compiler-rt |
| 46 | +patch -Np1 < /tmp/compiler-rt-dso-handle.patch |
| 47 | +cd ../../.. |
| 48 | + |
39 | 49 | # Build toolchain
|
40 | 50 | cd llvm
|
41 | 51 | mkdir build
|
|
0 commit comments