From 9c314d28b0928af9cadae4657759890057a6cb46 Mon Sep 17 00:00:00 2001 From: tongke6 <124763920+tongke6@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:46:10 +0800 Subject: [PATCH] Add USE_BAZEL_VERSION instruction (#444) * fix license check * add USE_BAZEL_VERSION instructions --- GETTING_STARTED.md | 1 + examples/.bazeliskrc | 1 + examples/.bazelversion | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 examples/.bazeliskrc delete mode 100644 examples/.bazelversion 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/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