Skip to contentSkip to conversation

jsonrpc: Disable coverage in default build

PATCH New Khem Raj 1 participant 1 message Oct 11, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 jsonrpc: Disable coverage in default build

Building with intrumentation is only useful during development or optimization phases, in production, this will just make it slow and in some cases not work where file system might be readonly.

If its needed then enable the packageconfig via a bbappend

---
v2: Add coverage packageconfig

 meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb +3 -0
index b23775708a..dbf44d796f 100644
@@ -14,6 +14,9 @@ SRCREV = "4ed5b00dcc409405a19e6d8c6478f703153430e1"
 
 S = "${WORKDIR}/git"
 
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[coverage] = "-DWITH_COVERAGE=YES,-DWITH_COVERAGE=NO,,"
+
 inherit cmake
 
 EXTRA_OECMAKE += "-DCOMPILE_TESTS=NO -DCOMPILE_STUBGEN=NO -DCOMPILE_EXAMPLES=NO \
Signature · 1 line
2.23.0