summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-12 02:29:23 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-12 16:46:41 +0100
commit238661f32871b1570544b60a57489669c3959d8f (patch)
treee82e2eead503144b6f9f69c9fc99da15e91701b8
parentAdd libadhocutil to the default build (diff)
downloadlibjsonpp-238661f32871b1570544b60a57489669c3959d8f.tar.bz2
libjsonpp-238661f32871b1570544b60a57489669c3959d8f.tar.xz
libjsonpp-238661f32871b1570544b60a57489669c3959d8f.zip
Add a code coverage profile
-rw-r--r--Jamroot.jam3
1 files changed, 3 insertions, 0 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index a5c799f..c838f50 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -4,6 +4,7 @@ import slice ;
using gcc : : [ os.environ CXX ] ;
variant component ;
+variant coverage : debug ;
project
: requirements
@@ -11,6 +12,8 @@ project
<variant>release:<linkflags>"-Wl,-z,defs,--warn-once"
<variant>debug:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y"
<variant>debug:<linkflags>"-Wl,-z,defs,--warn-once"
+ <variant>coverage:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage"
+ <variant>coverage:<linkflags>"-Wl,-z,defs,--warn-once --coverage"
<variant>component:<cflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y -fPIC"
<variant>component:<linkflags>"-Wl,-z,lazy,--warn-once,-fPIC"
;