mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 00:15:32 +02:00
distcc: add page (#17388)
This commit is contained in:
parent
ab9a40f4ed
commit
458455b65e
3 changed files with 84 additions and 0 deletions
28
pages.ko/common/distcc.md
Normal file
28
pages.ko/common/distcc.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# distcc
|
||||
|
||||
> `distccd`와 함께 사용하는 분산 C/C++/ObjC 컴파일 클라이언트입니다.
|
||||
> 더 많은 정보: <https://manned.org/distcc>.
|
||||
|
||||
- `gcc`와 같은 컴파일러로 소스 파일을 컴파일:
|
||||
|
||||
`distcc {{컴파일러명}} -c {{소스/파일/경로.c}} -o {{출력/파일/경로.o}}`
|
||||
|
||||
- 컴파일을 분산시킬 원격 호스트 설정:
|
||||
|
||||
`export DISTCC_HOSTS="localhost {{호스트IP1 호스트IP2 ...}}"`
|
||||
|
||||
- `distcc`를 사용해 `make`로 프로젝트를 병렬 컴파일:
|
||||
|
||||
`make {{[-j|--jobs]}} {{병렬_작업_수}} CC="distcc {{컴파일러명}}"`
|
||||
|
||||
- 현재 설정된 `distcc` 호스트 목록 확인:
|
||||
|
||||
`distcc --show-hosts`
|
||||
|
||||
- 도움말 출력:
|
||||
|
||||
`distcc --help`
|
||||
|
||||
- 버전 출력:
|
||||
|
||||
`distcc --version`
|
28
pages.zh/common/distcc.md
Normal file
28
pages.zh/common/distcc.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# distcc
|
||||
|
||||
> 与 `distccd` 搭配使用的分布式 C/C++/ObjC 编译客户端.
|
||||
> 更多信息:<https://manned.org/distcc>.
|
||||
|
||||
- 使用类似 `gcc` 的编译器编译源文件:
|
||||
|
||||
`distcc {{gcc}} -c {{路径/到/源文件.c}} -o {{路径/到/输出文件.o}}`
|
||||
|
||||
- 设置用于分布式编译的远程主机:
|
||||
|
||||
`export DISTCC_HOSTS="localhost {{主机IP1 主机IP2 ...}}"`
|
||||
|
||||
- 使用 `distcc` 和 `make` 并行编译项目:
|
||||
|
||||
`make {{[-j|--jobs]}} {{并行任务数}} CC="distcc {{gcc}}"`
|
||||
|
||||
- 显示当前配置的 `distcc` 主机列表:
|
||||
|
||||
`distcc --show-hosts`
|
||||
|
||||
- 显示帮助:
|
||||
|
||||
`distcc --help`
|
||||
|
||||
- 显示版本:
|
||||
|
||||
`distcc --version`
|
28
pages/common/distcc.md
Normal file
28
pages/common/distcc.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue