Changeset 120a28c for configure.ac


Ignore:
Timestamp:
Jun 17, 2019, 11:26:14 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
8b34df0
Parents:
462a7c7
Message:

Added support for address-sanitizer which requires disabling Heap Statistics and TCMalloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r462a7c7 r120a28c  
    9494                # skip the target hosts
    9595                \'--with-target-hosts=*) ;;
     96
     97                # skip gprofiler for libcfa
     98                \'--enable-gprofiler=*) ;;
     99                \'--disable-gprofiler) ;;
    96100
    97101                # append all other arguments to the sub configure arguments
     
    125129        target_hosts=$withval, target_hosts=${default_target})
    126130
     131AC_ARG_ENABLE(gprofiler,
     132        [  --enable-gprofiler     whether or not to enable gprofiler tools (if available)],
     133        enable_gprofiler=$enableval, enable_gprofiler=yes)
     134
    127135AC_SUBST(TARGET_HOSTS, ${target_hosts})
    128136
     
    192200
    193201AC_CHECK_LIB([profiler], [ProfilingIsEnabledForAllThreads], [HAVE_LIBPROFILER=1], [HAVE_LIBPROFILER=0])
    194 AM_CONDITIONAL([WITH_LIBPROFILER], [test "$HAVE_LIBPROFILER" -eq 1])
     202AM_CONDITIONAL([WITH_LIBPROFILER], [test "x$enable_gprofiler" = "xyes" -a "$HAVE_LIBPROFILER" -eq 1])
    195203
    196204AC_CHECK_LIB([tcmalloc], [malloc], [HAVE_LIBTCMALLOC=1], [HAVE_LIBTCMALLOC=0])
    197 AM_CONDITIONAL([WITH_LIBTCMALLOC], [test "$HAVE_LIBTCMALLOC" -eq 1])
     205AM_CONDITIONAL([WITH_LIBTCMALLOC], [test "x$enable_gprofiler" = "xyes" -a "$HAVE_LIBTCMALLOC" -eq 1])
    198206
    199207# Checks for header files.
Note: See TracChangeset for help on using the changeset viewer.