Ignore:
Timestamp:
Aug 7, 2019, 3:23:56 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
14347ac
Parents:
7e0017f5
Message:

Tentative support for distcc in cforall, right now nothing works because distcc doesn't understand cfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure.ac

    r7e0017f5 rbbfd0e0  
    2727AC_ARG_VAR(CFA_VERSION, [The long version of cfa])
    2828
    29 CFACC=${DRIVER_DIR}cfa
    30 CFACPP=${DRIVER_DIR}cfa-cpp
     29AC_ARG_ENABLE(distcc,
     30        [  --enable-distcc     whether or not to enable distributed compilation],
     31        enable_distcc=$enableval, enable_distcc=no)
     32
     33echo -n "checking for distributated build... "
     34if test x$enable_distcc = xno; then
     35        CFACC=${DRIVER_DIR}cfa
     36        CFACPP=${DRIVER_DIR}cfa-cpp
     37        PRELUDEFLAG='-in-tree'
     38        echo "no"
     39else
     40        path=$(readlink -f .)
     41        CFADIR_HASH=$(openssl dgst -sha256 <<< $path)
     42        CFADIR_HASH="${CFADIR_HASH: -10}"
     43        CFACC="/home/tdelisle/workspace/master-cforall/main/tools/build/distcc ~/.cfadistcc/${CFADIR_HASH}/g++"
     44        CFACPP="/home/tdelisle/workspace/master-cforall/main/tools/build/distcc ~/.cfadistcc/${CFADIR_HASH}/cfa-cpp"
     45        PRELUDEFLAG='-dist-tree'
     46        echo "yes (hash=${CFADIR_HASH})"
     47fi
     48LOCAL_CFACC=${DRIVER_DIR}cfa
     49LOCAL_CFACPP=${DRIVER_DIR}cfa-cpp
     50
     51AM_CONDITIONAL([ENABLE_DISTCC], [test x$enable_distcc = xyes])
     52
    3153AC_SUBST(CFACC)
    3254AC_SUBST(CFACPP)
     55AC_SUBST(LOCAL_CFACC)
     56AC_SUBST(LOCAL_CFACPP)
     57AC_SUBST(CFADIR_HASH)
    3358AC_SUBST(CFA_VERSION)
     59AC_SUBST(PRELUDEFLAG)
    3460
    3561#==============================================================================
Note: See TracChangeset for help on using the changeset viewer.