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
dc22a254
Commit
dc22a254
authored
Aug 01, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmake: add -t option for test build servers
parent
ceaa592e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
dmake
bin/dmake
+22
-2
No files found.
bin/dmake
View file @
dc22a254
...
...
@@ -4,7 +4,9 @@
.
`
dirname
$0
`
/../share/eterbuild/functions/common
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"dmake - make with distcc using (distributed build)"
echo
"dmake [-t] [-p] - make with distcc using (distributed build)"
echo
" -p run in plain mode (without pump)"
echo
" -t run test compiler via ssh for build hosts"
exit
0
fi
...
...
@@ -13,6 +15,24 @@ if [ "$1" = "-p" ] ; then
PLAIN_DISTCC
=
distcc
fi
get_quoted_list
()
{
local
LIST
=
for
i
in
$@
;
do
LIST
=
"
$LIST$i
,"
done
echo
"
$LIST
"
}
if
[
"
$1
"
=
"-t"
]
;
then
shift
PDSH
=
$(
which pdsh 2>/dev/null
)
[
-n
"
$PDSH
"
]
||
fatal
"Install pdsh package for test build cloud"
docmd
$PDSH
-w
$(
get_quoted_list
$DISTCC_64_HOSTS
$DISTCC_32_HOSTS
)
"g++ -v 2>&1 | tail -n1"
exit
fi
extra_to_pump_mode
()
{
local
LIST
=
...
...
@@ -43,7 +63,7 @@ if [ "$DEFAULTARCH" = "x86_64" ] ; then
export
DISTCC_HOSTS
=
"
$(
extra_to_pump_mode
$DISTCC_64_HOSTS
)
"
DISTCC_THREADS
=
$DISTCC_64_THREADS
else
export
DISTCC_HOSTS
=
"
$(
extra_to_pump_mode
$DISTCC_
32_HOSTS
$DISTCC_64
_HOSTS
)
"
export
DISTCC_HOSTS
=
"
$(
extra_to_pump_mode
$DISTCC_
64_HOSTS
$DISTCC_32
_HOSTS
)
"
DISTCC_THREADS
=
$((
$DISTCC_32_THREADS
+
$DISTCC_64_THREADS
))
DISTCC
=
"
$DISTCC
gcc -m32"
DISTCXX
=
"
$DISTCXX
g++ -m32"
...
...
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