File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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) ` ).
You can’t perform that action at this time.
0 commit comments