xref: /aosp_15_r20/external/skia/infra/bots/assets/clang_linux/README.md (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1This has the clang compiler and other tools (e.g. clang-tidy and IWYU) built from source for
2Linux hosts.
3
4This is used both by our GN build and Bazel builds. The GN build will be updated automatically
5after updating this asset with the `sk` tool.
6
7To manually update the Bazel build:
8  1) Download the latest version from CIPD as a .zip file.
9     <https://chrome-infra-packages.appspot.com/p/skia/bots/clang_linux>
10  2) Change the file name to be clang_linux_amd64_vNN.zip where NN is the new version in the
11     `VERSION` file.
12  3) Upload it to the GCS mirror bucket
13     `go run ./bazel/gcs_mirror/gcs_mirror.go --sha256 <hash> --file /path/to/clang_linux_amd64_vNN.zip`
14  4) Update the sha256 in `//toolchain/download_linux_amd64_toolchain.bzl`.
15  5) Test it locally with `make -C bazel known_good_builds`.
16     You may need to update the generated BUILD.bazel file to accommodate relocated/new files
17     as well as `//toolchain/linux_amd64_toolchain_config.bzl` to use them correctly.
18