citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 70906ce9d8ed29472a7d947e233b0bfe0fd35956
parent af99222c38ae0e1e9e3683fbd1034e9cd0408844
Author: Kyle Milz <kyle@0x30.net>
Date:   Wed, 21 Dec 2016 17:16:10 -0700

move build modifiers into root Jamfile

Diffstat:
MJamfile | 31+++++++++++++++++++++++++++++++
MJamrules.in | 25-------------------------
2 files changed, 31 insertions(+), 25 deletions(-)

diff --git a/Jamfile b/Jamfile @@ -2,3 +2,34 @@ SubDir TOP ; SubInclude TOP man ; SubInclude TOP src ; + +# +# Different build modifiers. Put them here because it only makes sense to run +# them from the root directory. +# +actions StaticAnalysis +{ + export CITRUN_SA=1 + ./configure + scan-build -o html --use-c++=eg++ jam -j4 + # scan-build -o html -v --use-c++=eg++ jam -j4 +} + +actions TestCoverage +{ + set -e + ./configure + CFLAGS="-coverage -ggdb" LDFLAGS="-coverage" jam -j4 + + # Roll libgcov.a into libcitrun.a. + ar -M < t/libcitrun_gcov.mri + + prove + # prove tt + + gcov -o src src/lib.c + egcov -r src/*.cc +} + +StaticAnalysis static-analysis ; +TestCoverage test-coverage ; diff --git a/Jamrules.in b/Jamrules.in @@ -21,31 +21,6 @@ if $(OS) = LINUX { LDGROUP_END = -Wl,--end-group ; } -actions StaticAnalysis -{ - export CITRUN_SA=1 - scan-build -o html --use-c++=eg++ jam -j4 - # scan-build -o html -v --use-c++=eg++ jam -j4 -} - -actions TestCoverage -{ - set -e - CFLAGS="-coverage -ggdb" LDFLAGS="-coverage" jam -j4 - - # Roll libgcov.a into libcitrun.a. - ar -M < t/libcitrun_gcov.mri - - prove - # prove tt - - gcov -o src src/lib.c - egcov -r src/*.cc -} - -StaticAnalysis static-analysis ; -TestCoverage test-coverage ; - if $(CITRUN_SA) { # scan-build sets these expecting us to pick up the new values. CC = $(CC) ;