blob: a5498437b347588f77617c50e78992195cffb392 [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
pccc9228e42017-06-16 10:36:5351. Run `python tools/clang/scripts/upload_revision.py 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
ingloriond277c61f2017-09-15 23:08:0612 ```shell
13 $ export rev=123456-1
14 $ for x in Linux_x64 Mac Win ; do \
15 gsutil.py 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.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/llvmobjdump-$rev.tgz \
18 gs://chromium-browser-clang/$x/llvmobjdump-$rev.tgz ; \
Mitch Phillipscab458302017-11-20 21:44:3619 gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/llvmcfiverify-$rev.tgz \
20 gs://chromium-browser-clang/$x/llvmcfiverify-$rev.tgz ; \
ingloriond277c61f2017-09-15 23:08:0621 gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/translation_unit-$rev.tgz \
22 gs://chromium-browser-clang/$x/translation_unit-$rev.tgz ; \
23 gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/llvm-code-coverage-$rev.tgz \
24 gs://chromium-browser-clang/$x/llvm-code-coverage-$rev.tgz ; \
25 done
Nico Weber25162252017-10-09 18:00:5126 $ gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/Mac/lld-$rev.tgz \
Hans Wennborge583b5e2017-10-11 02:40:5527 gs://chromium-browser-clang/Mac/lld-$rev.tgz
ingloriond277c61f2017-09-15 23:08:0628 ```
Hans Wennborge583b5e2017-10-11 02:40:5529
hansc3a66162017-05-12 16:27:07301. Run the goma package update script to push these packages to goma. If you do
31 not have the necessary credentials to do the upload, ask clang@chromium.org
32 to find someone who does
thakis3447dcd2016-05-05 18:17:15331. Run an exhaustive set of try jobs to test the new compiler:
ingloriond277c61f2017-09-15 23:08:0634
35 ```shell
36 git cl try && \
Nico Weber0c7513e2017-08-11 20:56:5537 git cl try -m tryserver.chromium.mac -b mac_chromium_asan_rel_ng \
38 -b ios-device && \
Hans Wennborg7bbcf272017-11-15 23:29:2139 git cl try -m tryserver.chromium.linux \
Peter Collingbourne5a4d2482017-07-12 21:50:3540 -b linux_chromium_chromeos_asan_rel_ng -b linux_chromium_msan_rel_ng \
Peter Collingbourne52366262017-11-01 20:06:3041 -b linux_chromium_cfi_rel_ng &&
Hans Wennborg7bbcf272017-11-15 23:29:2142 git cl try -m tryserver.blink -b linux_trusty_blink_rel &&
43 git cl try -m tryserver.chromium.chromiumos -b linux-chromeos-dbg
ingloriond277c61f2017-09-15 23:08:0644 ```
45
nodir06cbaa02015-08-25 17:15:24461. Commit roll CL from the first step
471. The bots will now pull the prebuilt binary, and goma will have a matching
48 binary, too.