Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 60 lines (47 sloc) 1.351 kB
#!/bin/bash
if test -z "$1" || test ! -e "$1"; then
echo Usage: $0 foo.c
exit 1
fi
self="`readlink -f "$0"`"
topdir="`dirname "$self"`/.."
# basic setup
FA_BUILD="$topdir/fa_build"
FA_PLUG="$FA_BUILD/libfa.so"
# filled in by CMake
GCC=@GCC_HOST@
# initial checks
test -x "$GCC" || exit 1
# attempt to make
make -s $MAKEOPTS -C "$topdir/fa" || exit 1
test -x "$FA_PLUG" || exit 1
# use verbose level 0 by default
test -z "$FA_VERBOSE" && FA_VERBOSE=0
# use pp code listener by default
test -z "$FA_OPTS" && FA_OPTS="-fplugin-arg-libfa-dump-pp"
# use chromium as default SVG_VIEWER
test -z "$SVG_VIEWER" && SVG_VIEWER=chromium
if test x1 = "x$FA_PLOT"; then
# wipe all .dot and .svg
rm -f *.dot *.svg
fi
BOXDB=""
if [ "$2" != "" ]; then
BOXDB="-fplugin-arg-libfa-args=db-root:$2"
fi
# run the gcc
valgrind --leak-check=full --trace-children=yes "$GCC" -c "$1" -o /dev/null -O0 -m32 \
-DALIEN \
-fplugin="$FA_PLUG" \
-fplugin-arg-libfa-verbose="$FA_VERBOSE" \
$BOXDB \
$FA_OPTS \
#|| exit $?
#if test x1 = "x$FA_PLOT"; then
# visualize graphs
# printf "graph visualization in progress ... "
# make $MAKEOPTS -s -f "$topdir/sl/data/Makefile" TIMEOUT="timeout 2" \
# || exit $?
# printf "done\n"
# "$SVG_VIEWER" *.svg
#fi
Jump to Line
Something went wrong with that request. Please try again.