Commit 0321f03c authored by Vitaly Lipatov's avatar Vitaly Lipatov

add dmake for distcc support

parent 4ba5d6a2
#!/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" $@
...@@ -80,3 +80,8 @@ ...@@ -80,3 +80,8 @@
# Build for Sisyphus by default # Build for Sisyphus by default
# MENV=SS # MENV=SS
# distcc support in jmake
# https://wiki.office.etersoft.ru/devel/distrubutedcompilation
# DISTCC_HOSTS="euclid atlant"
# DISTCC_HOSTS_NUM=12
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment