github.com/distbuild/reclient@v0.0.0-20240401075343-3de72e395564/.bazelversion (about) 1 6.3.2 2 ### PLEASE READ ### 3 4 Bazelisk only reads the first line of this file. Don't move this up. 5 When upgrading bazel, you must also upgrade toolchains. 6 7 1. Install rbe_configs_gen: 8 1.1: $ git clone https://github.com/bazelbuild/bazel-toolchains 9 1.2: $ cd bazel-toolchains 10 1.3: $ go install ./cmd/rbe_configs_gen/rbe_configs_gen.go 11 12 2. Run it for Linux: 13 14 ``` 15 export RECLIENT_BUILDER_V=v13 16 export NEW_BAZEL_VERSION=$(head -n 1 .bazelversion | tail -n 1) 17 export PATH_TO_RECLIENT=$PWD 18 export GCR_IMAGE=gcr.io/reclient-releases/reclient-builder:${RECLIENT_BUILDER_V} 19 rbe_configs_gen \ 20 --output_src_root=${PATH_TO_RECLIENT} \ 21 --output_config_path=configs/linux \ 22 --exec_os=linux \ 23 --target_os=linux \ 24 --toolchain_container=${GCR_IMAGE} \ 25 --bazel_version=${NEW_BAZEL_VERSION} \ 26 --generate_java_configs=false 27 bazelisk run //:gazelle 28 ``` 29 30 Edit the cc_toolchain_suite in //configs/linux/cc/BUILD.bazel to include 31 `tags=["manual"]` so it isn't caught by `...` expansion. 32 33 3. Run it for Windows. You'll need a windows machine/cloudtop/GCE VM. 34 35 $ set RECLIENT_BUILDER_V=v4 36 $ set NEW_BAZEL_VERSION=6.3.2 37 $ set PATH_TO_RECLIENT=%CD% 38 $ rbe_configs_gen.exe^ 39 --output_src_root=%PATH_TO_RECLIENT%^ 40 --output_config_path=configs/windows^ 41 --exec_os=windows^ 42 --target_os=windows^ 43 --toolchain_container=gcr.io/reclient-releases/reclient-builder-win:%RECLIENT_BUILDER_V%^ 44 --cpp_toolchain_target=cc-compiler-x64_windows-clang-cl^ 45 --bazel_version=%NEW_BAZEL_VERSION%^ 46 --generate_java_configs=false 47 48 Edit the cc_toolchain_suite in //configs/windows/cc/BUILD.bazel to include 49 `tags=["manual"]` so it isn't caught by `...` expansion.