blob: 407c221d4a149dd303ce920831f61d47bc178370 [file] [log] [blame] [view]
andybons3322f762015-08-24 21:37:091# Updating clang
2
nodir06cbaa02015-08-25 17:15:2431. Sync your Chromium tree to the latest revision to pick up any plugin
rnk61e1abc62016-05-04 16:50:214 changes
51. Run `python tools/clang/scripts/upload_revision.py --clang_revision=NNNN`
hansc3a66162017-05-12 16:27:076 with the target LLVM SVN revision number. This creates a roll CL on a new
7 branch, uploads it and starts tryjobs that build the compiler binaries into
8 a staging bucket on Google Cloud Storage (GCS).
91. If the clang upload try bots succeed, copy the binaries from the staging
10 bucket to the production one. For example:
11
12```
13$ export rev=123456-1
14$ for x in Linux_x64 Mac Win ; do \
15 gsutil cp -n -a public-read gs://chromium-browser-clang-staging/$x/clang-$rev.tgz \
16 gs://chromium-browser-clang/$x/clang-$rev.tgz ; \
17 gsutil cp -n -a public-read gs://chromium-browser-clang-staging/$x/llvmobjdump-$rev.tgz \
18 gs://chromium-browser-clang/$x/llvmobjdump-$rev.tgz ; \
19 done
20$ gsutil cp -n -a public-read gs://chromium-browser-clang-staging/Linux_x64/llvmgold-$rev.tgz \
21 gs://chromium-browser-clang/Linux_x64/llvmgold-$rev.tgz
22```
23
241. Run the goma package update script to push these packages to goma. If you do
25 not have the necessary credentials to do the upload, ask clang@chromium.org
26 to find someone who does
thakis3447dcd2016-05-05 18:17:15271. Run an exhaustive set of try jobs to test the new compiler:
28```
29 git cl try &&
thakis52bd4f772016-08-08 20:19:1830 git cl try -m tryserver.chromium.mac -b mac_chromium_asan_rel_ng &&
thakis0978e6c2016-05-18 18:06:3931 git cl try -m tryserver.chromium.linux -b linux_chromium_chromeos_dbg_ng \
thakisb3312ff2016-06-27 16:43:4232 -b linux_chromium_chromeos_asan_rel_ng -b linux_chromium_msan_rel_ng &&
qyearsley468fc9b2016-11-17 18:09:4033 git cl try -m tryserver.blink -b linux_trusty_blink_rel
thakis3447dcd2016-05-05 18:17:1534```
nodir06cbaa02015-08-25 17:15:24351. Commit roll CL from the first step
361. The bots will now pull the prebuilt binary, and goma will have a matching
37 binary, too.