1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-17 15:35:45 +02:00
tldr/pages/common/distcc.md

29 lines
600 B
Markdown
Raw Normal View History

2025-07-31 21:34:01 +05:30
# distcc
> Distributed C/C++/ObjC compilation client that works with `distccd`.
> More information: <https://manned.org/distcc>.
- Compile a source file using a compiler like `gcc`:
`distcc {{gcc}} -c {{path/to/source.c}} -o {{path/to/output.o}}`
- Set remote hosts to distribute compilation:
`export DISTCC_HOSTS="localhost {{ip1 ip2 ...}}"`
- Compile a project with `make` using `distcc`:
`make {{[-j|--jobs]}} {{parallel_jobs}} CC="distcc {{gcc}}"`
- Show the list of current `distcc` hosts:
`distcc --show-hosts`
- Display help:
`distcc --help`
- Display version:
`distcc --version`