diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 8413c79c..5f714c98 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -7,6 +7,7 @@ This document includes guidelines. To build Yacl from source, you will need the following tools: - [bazel](https://bazel.build/): We recommend to use the official [bazelisk](https://github.com/bazelbuild/bazelisk?tab=readme-ov-file#installation) to manage bazel version. + - If not use bazelisk, please set the environment variable `USE_BAZEL_VERSION` to the specified version, which can be found in the `.bazeliskrc` file. - [gcc >= 10.3](https://gcc.gnu.org/) - [cmake](https://cmake.org/) - [ninja/ninja-build](https://ninja-build.org/) diff --git a/README.md b/README.md index 09d286dc..712a14da 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Supported platforms: ## Prerequisites -- **bazel**: [.bazelversion](.bazelversion) file describes the recommended version of bazel. We recommend to use the official [bazelisk](https://github.com/bazelbuild/bazelisk?tab=readme-ov-file#installation) to manage bazel version. +- **bazel**: [.bazeliskrc](.bazeliskrc) sets the recommended version of bazel. We recommend to use the official [bazelisk](https://github.com/bazelbuild/bazelisk?tab=readme-ov-file#installation) to manage bazel version. - **gcc >= 10.3** - **[cmake](https://cmake.org/getting-started/)** - **[ninja/ninja-build](https://ninja-build.org/)** diff --git a/examples/.bazeliskrc b/examples/.bazeliskrc new file mode 100644 index 00000000..cc6e62aa --- /dev/null +++ b/examples/.bazeliskrc @@ -0,0 +1 @@ +USE_BAZEL_VERSION=7.4.1 diff --git a/examples/.bazelversion b/examples/.bazelversion deleted file mode 100644 index b6167179..00000000 --- a/examples/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -7.4.0 \ No newline at end of file