Changeset 3ac8b9f


Ignore:
Timestamp:
Jul 31, 2020, 3:43:22 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
e660761
Parents:
920dca3
Message:

Added make variable to allow timing CFA compilation.
Usage : make T=1 [Other options...]

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure

    r920dca3 r3ac8b9f  
    701701CFA_PREFIX
    702702CFA_NAME
     703AM_T
    703704BUILDLIB_FALSE
    704705BUILDLIB_TRUE
     
    31873188  BUILDLIB_FALSE=
    31883189fi
     3190
     3191
     3192AM_T='$(T)'
    31893193
    31903194
     
    1701717021
    1701817022
     17023
    1701917024for ac_header in linux/io_uring.h
    1702017025do :
     
    1929519300
    1929619301
     19302
     19303fi
     19304
     19305
     19306
     19307        # check support for various io_uring flags
     19308
     19309                ac_fn_c_check_decl "$LINENO" "IOSQE_FIXED_FILE" "ac_cv_have_decl_IOSQE_FIXED_FILE" "#include <linux/io_uring.h>
     19310"
     19311if test "x$ac_cv_have_decl_IOSQE_FIXED_FILE" = xyes; then :
     19312  $as_echo "#define CFA_HAVE_IOSQE_FIXED_FILE 1" >>confdefs.h
     19313
     19314fi
     19315
     19316
     19317                ac_fn_c_check_decl "$LINENO" "IOSQE_IO_DRAIN" "ac_cv_have_decl_IOSQE_IO_DRAIN" "#include <linux/io_uring.h>
     19318"
     19319if test "x$ac_cv_have_decl_IOSQE_IO_DRAIN" = xyes; then :
     19320  $as_echo "#define CFA_HAVE_IOSQE_IO_DRAIN 1" >>confdefs.h
     19321
     19322fi
     19323
     19324
     19325                ac_fn_c_check_decl "$LINENO" "IOSQE_ASYNC" "ac_cv_have_decl_IOSQE_ASYNC" "#include <linux/io_uring.h>
     19326"
     19327if test "x$ac_cv_have_decl_IOSQE_ASYNC" = xyes; then :
     19328  $as_echo "#define CFA_HAVE_IOSQE_ASYNC 1" >>confdefs.h
     19329
     19330fi
     19331
     19332
     19333                ac_fn_c_check_decl "$LINENO" "IOSQE_IO_LINK" "ac_cv_have_decl_IOSQE_IO_LINK" "#include <linux/io_uring.h>
     19334"
     19335if test "x$ac_cv_have_decl_IOSQE_IO_LINK" = xyes; then :
     19336  $as_echo "#define CFA_HAVE_IOSQE_IO_LINK 1" >>confdefs.h
     19337
     19338fi
     19339
     19340
     19341                ac_fn_c_check_decl "$LINENO" "IOSQE_IO_HARDLINK" "ac_cv_have_decl_IOSQE_IO_HARDLINK" "#include <linux/io_uring.h>
     19342"
     19343if test "x$ac_cv_have_decl_IOSQE_IO_HARDLINK" = xyes; then :
     19344  $as_echo "#define CFA_HAVE_IOSQE_IO_HARDLINK 1" >>confdefs.h
     19345
     19346fi
     19347
     19348
     19349                ac_fn_c_check_decl "$LINENO" "SPLICE_F_FD_IN_FIXED" "ac_cv_have_decl_SPLICE_F_FD_IN_FIXED" "#include <linux/io_uring.h>
     19350"
     19351if test "x$ac_cv_have_decl_SPLICE_F_FD_IN_FIXED" = xyes; then :
     19352  $as_echo "#define CFA_HAVE_SPLICE_F_FD_IN_FIXED 1" >>confdefs.h
    1929719353
    1929819354fi
     
    2115821214#! $SHELL
    2115921215# Generated automatically by $as_me ($PACKAGE) $VERSION
    21160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    2116121216# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    2116221217
  • libcfa/configure.ac

    r920dca3 r3ac8b9f  
    105105AM_CONDITIONAL([BUILDLIB], [test "x${CONFIG_BUILDLIB}" = "xyes"])
    106106
     107AM_T='$(T)'
     108AC_SUBST(AM_T)
     109
    107110#==============================================================================
    108111#Trasforming cc1 will break compilation
  • src/cfa.make

    r920dca3 r3ac8b9f  
    1 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS)
    2 LTCFACOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
     1AM_T_CFA = $(am__t_CFA_@AM_T@)
     2am__t_CFA_ =
     3am__t_CFA_0 =
     4am__t_CFA_1 = /usr/bin/time --quiet -f "$@ %E" # trailling space is necessary
     5
     6
     7CFACOMPILE = $(AM_T_CFA)$(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS)
     8LTCFACOMPILE = $(AM_T_CFA)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
    39        $(LIBTOOLFLAGS) --mode=compile $(CFACC) $(DEFS) \
    410        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(AM_CFLAGS) $(CFAFLAGS) $(CFLAGS)
Note: See TracChangeset for help on using the changeset viewer.