Skip to content

Commit 39ac87a

Browse files
authored
tell agents to use bazel (#182)
1 parent 5528a26 commit 39ac87a

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
# Agent Instructions
22

3-
- Use the **CMake** build system when interacting with this repository. Humans use Bazel.
4-
- A bug in some LLM coding environments makes Bazel difficult to use, so agents should rely on CMake.
3+
- Use the Bazel build system when interacting with this repository.
4+
- The CMake build system is available to help users who need it.
55
- Keep both the CMake and Bazel builds working at all times.
66

7+
## Building with Bazel
8+
9+
To build all code with bazel:
10+
```bash
11+
bazel build src:all
12+
```
13+
To build the Tesseract and Simplex main binaries:
14+
```bash
15+
bazel build src:tesseract src:simplex
16+
```
17+
18+
## Running Tests with Bazel
19+
20+
```bash
21+
bazel test src:all
22+
```
23+
724
## Building with CMake
825

9-
When building with CMake, use parallel flags to speed up the process.
26+
In case you need to, when building with CMake, use parallel flags to speed up the process.
1027

1128
- When using `cmake --build`, add the `--parallel` flag.
1229
- When using `make`, add the `-j` flag (e.g., `make -j$(nproc)`).

0 commit comments

Comments
 (0)