Skip to contentSkip to conversation

jsonrpc: Disable coverage in default build

PATCH Superseded Khem Raj 2 participants 2 messages Oct 11, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 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.

---
 meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb +1 -0
index b23775708a..6ad0a49abd 100644
@@ -18,6 +18,7 @@ inherit cmake
 
 EXTRA_OECMAKE += "-DCOMPILE_TESTS=NO -DCOMPILE_STUBGEN=NO -DCOMPILE_EXAMPLES=NO \
                   -DBUILD_SHARED_LIBS=YES -DBUILD_STATIC_LIBS=YES \
+                  -DWITH_COVERAGE=NO \
                   -DCMAKE_LIBRARY_PATH=${libdir} \
 "
 
Signature · 1 line
2.23.0
#1 lore raw

PACKAGECONFIG option? Or do you just think users wanting coverage would override EXTRA_OECMAKE?

Quoted 32 lines · Khem Raj

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.

---
 meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.2.0.bb +1 -2
index b23775708a..6ad0a49abd 100644
@@ -18,6 +18,7 @@ inherit cmake
 
 EXTRA_OECMAKE += "-DCOMPILE_TESTS=NO -DCOMPILE_STUBGEN=NO
-DCOMPILE_EXAMPLES=NO \
                   -DBUILD_SHARED_LIBS=YES -DBUILD_STATIC_LIBS=YES \
+                  -DWITH_COVERAGE=NO \
                   -DCMAKE_LIBRARY_PATH=${libdir} \
 "
 
--

2.23.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel