Changeset bbfd0e0 for libcfa/configure


Ignore:
Timestamp:
Aug 7, 2019, 3:23:56 PM (5 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

    r7e0017f5 rbbfd0e0  
    707707CONFIG_CFLAGS
    708708ARCH_FLAGS
     709PRELUDEFLAG
     710CFADIR_HASH
     711LOCAL_CFACPP
     712LOCAL_CFACC
    709713CFACPP
    710714CFACC
     715ENABLE_DISTCC_FALSE
     716ENABLE_DISTCC_TRUE
    711717CFA_VERSION
    712718DRIVER_DIR
     
    783789enable_option_checking
    784790enable_silent_rules
     791enable_distcc
    785792with_cfa_name
    786793enable_shared
     
    14451452  --enable-silent-rules   less verbose build output (undo: "make V=1")
    14461453  --disable-silent-rules  verbose build output (undo: "make V=0")
     1454  --enable-distcc     whether or not to enable distributed compilation
    14471455  --enable-shared[=PKGS]  build shared libraries [default=yes]
    14481456  --enable-static[=PKGS]  build static libraries [default=yes]
     
    29412949
    29422950
    2943 CFACC=${DRIVER_DIR}cfa
    2944 CFACPP=${DRIVER_DIR}cfa-cpp
     2951# Check whether --enable-distcc was given.
     2952if test "${enable_distcc+set}" = set; then :
     2953  enableval=$enable_distcc; enable_distcc=$enableval
     2954else
     2955  enable_distcc=no
     2956fi
     2957
     2958
     2959echo -n "checking for distributated build... "
     2960if test x$enable_distcc = xno; then
     2961        CFACC=${DRIVER_DIR}cfa
     2962        CFACPP=${DRIVER_DIR}cfa-cpp
     2963        PRELUDEFLAG='-in-tree'
     2964        echo "no"
     2965else
     2966        path=$(readlink -f .)
     2967        CFADIR_HASH=$(openssl dgst -sha256 <<< $path)
     2968        CFADIR_HASH="${CFADIR_HASH: -10}"
     2969        CFACC="/home/tdelisle/workspace/master-cforall/main/tools/build/distcc ~/.cfadistcc/${CFADIR_HASH}/g++"
     2970        CFACPP="/home/tdelisle/workspace/master-cforall/main/tools/build/distcc ~/.cfadistcc/${CFADIR_HASH}/cfa-cpp"
     2971        PRELUDEFLAG='-dist-tree'
     2972        echo "yes (hash=${CFADIR_HASH})"
     2973fi
     2974LOCAL_CFACC=${DRIVER_DIR}cfa
     2975LOCAL_CFACPP=${DRIVER_DIR}cfa-cpp
     2976
     2977 if test x$enable_distcc = xyes; then
     2978  ENABLE_DISTCC_TRUE=
     2979  ENABLE_DISTCC_FALSE='#'
     2980else
     2981  ENABLE_DISTCC_TRUE='#'
     2982  ENABLE_DISTCC_FALSE=
     2983fi
     2984
     2985
     2986
     2987
     2988
     2989
    29452990
    29462991
     
    1698217027fi
    1698317028
     17029if test -z "${ENABLE_DISTCC_TRUE}" && test -z "${ENABLE_DISTCC_FALSE}"; then
     17030  as_fn_error $? "conditional \"ENABLE_DISTCC\" was never defined.
     17031Usually this means the macro was only invoked conditionally." "$LINENO" 5
     17032fi
    1698417033if test -z "${BUILDLIB_TRUE}" && test -z "${BUILDLIB_FALSE}"; then
    1698517034  as_fn_error $? "conditional \"BUILDLIB\" was never defined.
Note: See TracChangeset for help on using the changeset viewer.