source: tools/build/time_make@ 4573e3c

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 4573e3c was c65a80b, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Added tools used for cleaning headers and timing builds

  • Property mode set to 100755
File size: 766 bytes
Line 
1#!/bin/sh
2# -*- Mode: SH -*-
3#
4# Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
5#
6# The contents of this file are covered under the licence agreement in the
7# file "LICENCE" distributed with Cforall.
8#
9# time_make --
10#
11# Author : Thierry Delisle
12# Created On : Tue Jul 11 15:55:44 2017
13# Last Modified By :
14# Last Modified On :
15# Update Count : 0
16#
17
18set -x
19COMPILER=${CXX}
20SAFE_COMPILER=$(echo "${CXX}" | sed 's/+/\\+/g')
21TMP_FILE=$(mktemp)
22FILE=times.out
23
24make -s clean -C src
25make CXX="/usr/bin/time -f \"%E %C\" -o ${TMP_FILE} -a ${COMPILER}" -C src
26sed -r "s/([0-9]+:[0-9]+\.[0-9]+) ${SAFE_COMPILER} .* ([a-Z0-9/_\-]+\.o).*/\1 \2/" ${TMP_FILE} | \
27sed 's/driver_cfa_cpp-//' | \
28sort -r -o ${FILE}
Note: See TracBrowser for help on using the repository browser.