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
d2056783
Commit
d2056783
authored
Jul 28, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmake: add support 64 bit build and build i586 on x86_64
parent
05e38542
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
dmake
bin/dmake
+10
-8
config
etc/config
+7
-2
No files found.
bin/dmake
View file @
d2056783
...
...
@@ -8,21 +8,23 @@ if [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
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"
export
DISTCC_HOSTS
=
"
$DISTCC_64_HOSTS
"
DISTCC_HOSTS_NUM
=
$DISTCC_64_HOSTS_NUM
else
export
DISTCC_HOSTS
=
"
$DISTCC_32_HOSTS
$DISTCC_64_HOSTS
"
DISTCC_HOSTS_NUM
=
$((
$DISTCC_32_HOSTS_NUM
+
$DISTCC_64_HOSTS_NUM
))
DISTCC
=
"
$DISTCC
-m32"
fi
echo
"Build on '
$DISTCC_HOSTS
' hosts (
$DEFAULTARCH
arch)"
if
[
-z
"
$DISTCC_HOSTS
"
]
||
[
-z
"
$DISTCC_HOSTS_NUM
"
]
;
then
fatal
"Set DISTCC_HOSTS and DISTCC_HOSTS_NUM var in config"
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 @
d2056783
...
...
@@ -83,5 +83,10 @@
# distcc support in jmake
# https://wiki.office.etersoft.ru/devel/distrubutedcompilation
# DISTCC_HOSTS="euclid atlant"
# DISTCC_HOSTS_NUM=12
# i586 only systems
# DISTCC_32_HOSTS="euclid atlant"
# DISTCC_32_HOSTS_NUM=12
# x86_64 (gcc -m32 supports too)
# DISTCC_64_HOSTS="builder64"
# DISTCC_64_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