Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/bazel_version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
"6.5.0",
"7.7.0"
"7.7.0",
"8.5.0"
]

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Prerequisites
We need the following tools:

- Git 2 or newer (we use 2.36)
- Bazel 6 or 7, not yet bazel 8 (we recommend version 7.7.0)
- Bazel 6, 7 or 8 (we recommend version 8.5.0)
- Clang 16 or newer (we use 16), we use clang-tidy
- Python 3.8 or newer (we use 3.11)
- CodeChecker 6.26 or newer (we use 6.26.0)
Expand Down Expand Up @@ -100,11 +100,11 @@ pip3 install codechecker
```

Install Bazel:
We recommend bazel 7.7.0
We recommend bazel 8.5.0
```bash
wget https://github.com/bazelbuild/bazel/releases/download/7.7.0/bazel-7.7.0-linux-x86_64 && \
chmod +x bazel-7.7.0-linux-x86_64 && \
sudo mv bazel-7.7.0-linux-x86_64 /usr/local/bin/bazel
wget https://github.com/bazelbuild/bazel/releases/download/8.5.0/bazel-8.5.0-linux-x86_64 && \
chmod +x bazel-8.5.0-linux-x86_64 && \
sudo mv bazel-8.5.0-linux-x86_64 /usr/local/bin/bazel
```
Or choose a suitable binary for your system from this list: https://github.com/bazelbuild/bazel/releases/tag/7.7.0
Alternatively follow the official guide at: https://bazel.build/install
Expand Down
7 changes: 6 additions & 1 deletion test/foss/yaml-cpp/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ codechecker_test(

#-------------------------------------------------------
EOF

# Apply bazel 8 specific flag, forcing the use of WORKSPACE
VERSION=$(< "../../templates/.bazelversion")
MAJOR_VERSION=${VERSION%%.*}
if [ "$MAJOR_VERSION" -eq 8 ]; then
echo "common --enable_workspace" >> .bazelrc
fi
# Add codechecker_bazel repo to WORKSPACE
cat ../../templates/WORKSPACE.template >> WORKSPACE
7 changes: 6 additions & 1 deletion test/foss/zlib/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ codechecker_test(

#-------------------------------------------------------
EOF

# Apply bazel 8 specific flag, forcing the use of WORKSPACE
VERSION=$(< "../../templates/.bazelversion")
MAJOR_VERSION=${VERSION%%.*}
if [ "$MAJOR_VERSION" -eq 8 ]; then
echo "common --enable_workspace" >> .bazelrc
fi
# Add codechecker_bazel repo to WORKSPACE
cat ../../templates/WORKSPACE.template >> WORKSPACE
Loading