forked from ziglang/release-cutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-bootstrap-llvm
executable file
·57 lines (51 loc) · 1.35 KB
/
update-bootstrap-llvm
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
#!/bin/sh
set -e
BOOTSTRAP_REPO="$1"
LLVM_REPO="$2"
cd "$BOOTSTRAP_REPO"
rm -rf clang lld llvm cmake
cp -r "$LLVM_REPO/llvm/" ./
cp -r "$LLVM_REPO/clang/" ./
cp -r "$LLVM_REPO/lld/" ./
cp -r "$LLVM_REPO/cmake/" ./
rm -rf \
{llvm,lld,clang}/build-*/ \
clang/test/ \
clang/tools/scan-view/ \
clang/www/ \
lld/.clang-tidy \
lld/test/ \
llvm/test/ \
llvm/utils/{benchmark,docker,gn,lit,vim,vscode,git}/ \
llvm/utils/pipeline.py \
llvm/utils/llvm-mca-compare.py \
llvm/utils/rsp_bisect.py \
llvm/utils/rsp_bisect_test/ \
llvm/utils/reduce_pipeline.py \
llvm/utils/reduce_pipeline_test/ \
llvm/utils/release/ \
clang/docs/ \
llvm/docs/ \
lld/docs/ \
llvm/bindings/ \
llvm/examples/ \
clang/examples/ \
llvm/utils/*.py \
$(find -name ".clang-format" -o -name "*.rst") \
clang/unittests \
llvm/unittests \
llvm/utils/filecheck_lint \
llvm/utils/split-file \
llvm/utils/TableGen/jupyter \
llvm/utils/FileCheck \
llvm/utils/PerfectShuffle \
llvm/utils/count \
llvm/utils/not \
llvm/utils/UnicodeData \
llvm/utils/yaml-bench \
llvm/utils/split-file \
llvm/utils/llvm-lit \
llvm/utils/llvm-locstats
echo "Inspect git status, then do the following commands:"
echo 'git commit -a -m "update LLVM sources to XYZ"'
echo "next, look at the commits directly after the previous update commit and apply relevant patches"