Skip to content

Commit

Permalink
Merge pull request #2116 from corco/support-bazel-7
Browse files Browse the repository at this point in the history
Updated platforms dependency to support bazel 7
  • Loading branch information
hzeller authored Feb 22, 2024
2 parents ee91d73 + 576c1af commit 53e8d67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,21 @@ guide and the [development resources](./doc/development.md).

Verible's code base is written in C++.

To build, you need the [bazel] (>= 5.0 and < 7) build system and a C++17
compatible compiler (e.g. >= g++-10), as well as python3. Note, Verible
is _not_ yet compatible with bazel-7, so you have to use an older version
5 or 6. A lot of users of Verible have to work on pretty old installations,
To build, you need the [bazel] (>= 5.0 and <= 7) build system and a C++17
compatible compiler (e.g. >= g++-10), as well as python3. Note, to build
Verible with bazel-7, so you need to add `--noenable_bzlmod` to every bazel
command. A lot of users of Verible have to work on pretty old installations,
so we try to keep the requirements as minimal as possible.

Use your package manager to install the dependencies; on a system with
the nix package manager simply run `nix-shell` to get a build environment.

```bash
# Build all tools and libraries
# bazel 5/6
bazel build -c opt //...
# bazel 7
bazel build --noenable_bzlmod -c opt //...
```

You can access the generated artifacts under `bazel-bin/`. For instance the
Expand Down
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ http_archive(
# Bazel platform rules, needed as dependency to absl.
http_archive(
name = "platforms",
sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca",
sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
],
)

Expand Down

0 comments on commit 53e8d67

Please sign in to comment.