diff mbox series

[oe,meta-oe,V2] jsonrpc: Disable coverage in default build

Message ID 20191011025231.2457830-1-raj.khem@gmail.com
State Accepted
Commit 0272da33e7abf5c76c2a010913e8618cb1e9d6a7
Headers show
Series [oe,meta-oe,V2] jsonrpc: Disable coverage in default build | expand

Commit Message

Khem Raj Oct. 11, 2019, 2:52 a.m. UTC
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
v2: Add coverage packageconfig

 meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.23.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb b/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb
index b23775708a..dbf44d796f 100644
--- a/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb
+++ b/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb
@@ -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 \