Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / pigweed / repo / targets / host / target_docs.rst
1 .. _target-host:
2
3 ----
4 host
5 ----
6 The Pigweed host target is used for unit testing and some host side tooling.
7
8 Building
9 ========
10 To build for this target, invoke ninja with the top-level "host" group as the
11 target to build.
12
13 .. code:: sh
14
15   $ ninja -C out host
16
17 There are two host toolchains, and both of them can be manually invoked by
18 replacing `host` with `host_clang` or `host_gcc`. Not all toolchains are
19 supported on all platforms. Unless working specifically on one toolchain, it is
20 recommended to leave this to the default.
21
22 Running Tests
23 =============
24 Tests are automatically run as part of the host build, but if you desire to
25 manually run tests, you may invoke them from a shell directly.
26
27 Example:
28
29 ... code:: sh
30
31   $ ./out/host_[compiler]_debug/obj/pw_status/status_test
32
33 RPC server
34 ==========
35 The host target implements a system RPC server that runs over a local socket,
36 defaulting to port 33000. To communicate with a process running the host RPC
37 server, use ``pw rpc -s localhost:33000 <protos>``.
38
39 Configuration
40 =============
41 The host target exposes a few options that may be used to change the host build
42 behavior.
43
44 pw_build_HOST_TOOLS
45 -------------------
46 Pigweed includes a number of host-only tooling that may be built as part of the
47 host build. These tools are included as part of the bootstrap, so it's only
48 necessary to enable this setting when modifying host tooling. This is
49 disabled by default.