Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
0321f03c
Commit
0321f03c
authored
Jul 28, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dmake for distcc support
parent
4ba5d6a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
dmake
bin/dmake
+28
-0
config
etc/config
+5
-0
No files found.
bin/dmake
0 → 100755
View file @
0321f03c
#!/bin/sh
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
if
[
"
$1
"
==
"-h"
]
||
[
"
$1
"
==
"--help"
]
;
then
echo
"dmake - make with distcc using (distributed build)"
exit
0
fi
export
DISTCC_HOSTS
echo
"Build on '
$DISTCC_HOSTS
' hosts"
if
[
-z
"
$DISTCC_HOSTS
"
]
||
[
-z
"
$DISTCC_HOSTS_NUM
"
]
;
then
fatal
"Set DISTCC_HOSTS and DISTCC_HOSTS_NUM var in config"
fi
DISTCC
=
$(
which distcc 2>/dev/null
)
[
-n
"
$DISTCC
"
]
||
fatal
"Install distcc for run distributed make via dmake"
if
[
"
$DEFAULTARCH
"
=
"x86_64"
]
;
then
fatal
"x86_64 is not supported yet"
else
DISTCC
=
"
$DISTCC
-m32"
fi
showcmd
time
-p
make
-j
$DISTCC_HOSTS_NUM
CC
=
"
$DISTCC
"
CXX
=
"
$DISTCC
"
$@
time
-p
make
-j
$DISTCC_HOSTS_NUM
CC
=
"
$DISTCC
"
CXX
=
"
$DISTCC
"
$@
etc/config
View file @
0321f03c
...
...
@@ -80,3 +80,8 @@
# Build for Sisyphus by default
# MENV=SS
# distcc support in jmake
# https://wiki.office.etersoft.ru/devel/distrubutedcompilation
# DISTCC_HOSTS="euclid atlant"
# DISTCC_HOSTS_NUM=12
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment