Skip to content

Commit bc7c5a5

Browse files
committed
added example configs
1 parent 5735f21 commit bc7c5a5

File tree

4 files changed

+123
-0
lines changed

4 files changed

+123
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
logLevel=6 ; global log level override. 4=WARNING, 5=NOTICE, 6=INFO, 7=DEBUG. default is NOTICE.
2+
3+
[tools]
4+
toolIds=gcc_cpp,gcc_c,clang39_c,clang39_cpp
5+
; several aliases example
6+
gcc_c=/usr/bin/gcc,gcc
7+
gcc_cpp=/usr/bin/g++,g++
8+
9+
;varaible example. Variables scope is from definition to the end of the file.
10+
LOCAL_BIN:=/usr/local/bin
11+
clang39_c=$LOCAL_BIN/clang-3.9
12+
clang39_cpp=$LOCAL_BIN/clang-3.9++
13+
14+
; cross-compilation options. This argument appended to all remote invocations.
15+
clang39_c_append=--target=x86_64-unknown-linux-gnu
16+
clang39_cpp_append=--target=x86_64-unknown-linux-gnu
17+
18+
[toolClient]
19+
coordinatorHost=localhost
20+
coordinatorPort=7767
21+
; minimal tool invocation requred to use remote server. Obviously, 1-5 requests faster to execute locally.
22+
minimalRemoteTasks=10
23+
; timeout of request before sending to any tool server.
24+
queueTimeoutMS=10000
25+
; full network timeout. If you recieving "Timeout expired error", you could raise it.
26+
requestTimeoutMS=240000
27+
28+
[coordinator]
29+
listenPort=7767
30+
31+
[toolServer]
32+
serverName=gcc_worker
33+
; how many jobs will be executed concurrently.
34+
threadCount=4
35+
listenHost=localhost
36+
listenPort=7765
37+
coordinatorHost=localhost
38+
coordinatorPort=7767
39+
40+
; custom compression options
41+
compressionType=Gzip
42+
compressionLevel=5
43+
44+
; on Linux, we could use syslog instead of default stderr logging. On other systems option has no effect.
45+
logToSyslog=true
46+
47+
[proxy]
48+
listenPort=7779
49+
toolId=gcc_cpp
50+
logLevel=5
51+
; default is 4 minutes. But you could raise it.
52+
proxyClientTimeoutMS=240000
53+
54+
;log options can be overrided in any group: toolClient, coordinator, toolServer or proxy.
55+
; use file logging
56+
logToFile=true
57+
logDir=/var/log/Wuild/
58+
; log format options:
59+
outputTimestamp=true
60+
outputTimeoffsets=true
61+
outputLoglevel=true
62+
; log rotation options:
63+
maxMessagesInFile=100000
64+
maxFilesInDir=10
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
XCODE:=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
2+
CLANG39:=/usr/local/clang-3.9/bin
3+
4+
[tools]
5+
toolIds=clang39_cpp,clang39_c,clang39_xcode
6+
clang39_cpp=$CLANG39/clang++
7+
clang39_c=$CLANG39/clang++
8+
clang39_xcode=$XCODE/clang++
9+
10+
;cross flags
11+
clang39_xcode_append=--target=x86_64-apple-darwin15.4.0
12+
clang39_c_append=--target=x86_64-apple-darwin15.4.0
13+
clang39_cpp_append=--target=x86_64-apple-darwin15.4.0
14+
15+
; when sending requests, we replace clang39_xcode id with 'clang39_cpp'
16+
clang39_xcode_remoteAlias=clang39_cpp
17+
18+
[toolClient]
19+
coordinatorHost=localhost
20+
coordinatorPort=7767
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[tools]
2+
toolIds=gcc_cpp
3+
gcc_cpp=/usr/bin/g++ ; adjust to real gcc path
4+
5+
[toolClient]
6+
coordinatorHost=localhost
7+
coordinatorPort=7767
8+
9+
[coordinator]
10+
listenPort=7767
11+
12+
[toolServer]
13+
threadCount=1 ; adjust to hardware core count
14+
listenHost=localhost
15+
listenPort=7765
16+
coordinatorHost=localhost
17+
coordinatorPort=7767
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
; use environment variable %VS140CMNTOOLS%
2+
MSVC:=$VS140CMNTOOLS..\..\VC\BIN
3+
CLANG39:=C:\LLVM\3.9\bin
4+
5+
[tools]
6+
toolIds=clang39_c,clang39_cpp,msvc2015_x86,msvc2015_x86_64,msvc2015_native
7+
8+
clang39_c=$CLANG39/clang.exe
9+
clang39_cpp=$CLANG39/clang++.exe
10+
msvc2015_x86=$MSVC/amd64_x86/cl.exe
11+
msvc2015_x86_64=$MSVC/amd64/cl.exe
12+
msvc2015_native=$MSVC/cl.exe
13+
14+
msvc2015_native_remoteAlias=msvc2015_x86
15+
16+
[toolServer]
17+
; how many jobs will be executed concurrently.
18+
threadCount=4
19+
listenHost=myserver.hostname ; client will use this hostname to connect to toolserver.
20+
listenPort=7765
21+
coordinatorHost=coordinatorServer.hostname
22+
coordinatorPort=7767

0 commit comments

Comments
 (0)