mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 18:58:01 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/distcc
Normal file
33
tldr/distcc
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user