andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 1 | # Updating clang |
| 2 | |
nodir | 06cbaa0 | 2015-08-25 17:15:24 | [diff] [blame] | 3 | 1. Sync your Chromium tree to the latest revision to pick up any plugin |
rnk | 61e1abc6 | 2016-05-04 16:50:21 | [diff] [blame] | 4 | changes |
pcc | c9228e4 | 2017-06-16 10:36:53 | [diff] [blame] | 5 | 1. Run `python tools/clang/scripts/upload_revision.py NNNN` |
hans | c3a6616 | 2017-05-12 16:27:07 | [diff] [blame] | 6 | 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). |
| 9 | 1. If the clang upload try bots succeed, copy the binaries from the staging |
| 10 | bucket to the production one. For example: |
| 11 | |
inglorion | d277c61f | 2017-09-15 23:08:06 | [diff] [blame^] | 12 | ```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 ; \ |
| 19 | gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/translation_unit-$rev.tgz \ |
| 20 | gs://chromium-browser-clang/$x/translation_unit-$rev.tgz ; \ |
| 21 | gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/llvm-code-coverage-$rev.tgz \ |
| 22 | gs://chromium-browser-clang/$x/llvm-code-coverage-$rev.tgz ; \ |
| 23 | done |
| 24 | ``` |
| 25 | |
hans | c3a6616 | 2017-05-12 16:27:07 | [diff] [blame] | 26 | 1. Run the goma package update script to push these packages to goma. If you do |
| 27 | not have the necessary credentials to do the upload, ask clang@chromium.org |
| 28 | to find someone who does |
thakis | 3447dcd | 2016-05-05 18:17:15 | [diff] [blame] | 29 | 1. Run an exhaustive set of try jobs to test the new compiler: |
inglorion | d277c61f | 2017-09-15 23:08:06 | [diff] [blame^] | 30 | |
| 31 | ```shell |
| 32 | git cl try && \ |
Nico Weber | 0c7513e | 2017-08-11 20:56:55 | [diff] [blame] | 33 | git cl try -m tryserver.chromium.mac -b mac_chromium_asan_rel_ng \ |
| 34 | -b ios-device && \ |
thakis | 0978e6c | 2016-05-18 18:06:39 | [diff] [blame] | 35 | git cl try -m tryserver.chromium.linux -b linux_chromium_chromeos_dbg_ng \ |
Peter Collingbourne | 5a4d248 | 2017-07-12 21:50:35 | [diff] [blame] | 36 | -b linux_chromium_chromeos_asan_rel_ng -b linux_chromium_msan_rel_ng \ |
Peter Collingbourne | 1e9e1129 | 2017-07-13 17:25:32 | [diff] [blame] | 37 | -b fuchsia -b linux_chromium_cfi_rel_ng && |
inglorion | d277c61f | 2017-09-15 23:08:06 | [diff] [blame^] | 38 | git cl try -m tryserver.blink -b linux_trusty_blink_rel |
| 39 | ``` |
| 40 | |
nodir | 06cbaa0 | 2015-08-25 17:15:24 | [diff] [blame] | 41 | 1. Commit roll CL from the first step |
| 42 | 1. The bots will now pull the prebuilt binary, and goma will have a matching |
| 43 | binary, too. |