Skip to content

Instantly share code, notes, and snippets.

@dhuseby
Created March 5, 2014 19:14
Show Gist options
  • Save dhuseby/9374384 to your computer and use it in GitHub Desktop.
Save dhuseby/9374384 to your computer and use it in GitHub Desktop.
a minimal distcc .userconfig
# figure out where B2G root is
export B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)}
# options
export CC=gcc-4.6
export CXX=g++-4.6
export USE_DISTCC=${USE_DISTCC:-}
export CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache}
# enable distcc if specified
if [ "${USE_DISTCC}" == "1" ]; then
export CC=`which ${CC}`
export CXX=`which ${CXX}`
export CCACHE_PREFIX="distcc"
export CCACHE_DIR="/mnt/ccache"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment