[oe-commits] Dave Lerner : valgrind: build ptests without optimizations

git at git.openembedded.org git at git.openembedded.org
Wed Aug 19 17:07:20 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 98c4a3ffb8dca10739be600e8d6df7fb6aa4958f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=98c4a3ffb8dca10739be600e8d6df7fb6aa4958f

Author: Dave Lerner <dave.lerner at windriver.com>
Date:   Mon Aug 17 14:55:56 2015 -0500

valgrind: build ptests without optimizations

This commit changes the both CFLAGS and CXXFLAGS when building the
valgrind ptest binaries by appending -O0, forcing no optimizations
instead of the default -O2.  For qemux86-64, this change results in
FAIL/PASS ratio improvements from 149/394 to 58/485.

It is evident that the expected result files were generated from
regression tests binaries built without optimizations.

[ YOCTO #8063 ]

Signed-off-by: Dave Lerner <dave.lerner at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-devtools/valgrind/valgrind_3.10.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb b/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
index 97d923d..537d7c8 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
@@ -57,7 +57,7 @@ RRECOMMENDS_${PN} += "${TCLIBC}-dbg"
 RDEPENDS_${PN}-ptest += " sed perl glibc-utils perl-module-file-glob"
 
 do_compile_ptest() {
-    oe_runmake check
+    oe_runmake check CFLAGS="${CFLAGS} -O0" CXXFLAGS="${CXXFLAGS} -O0"
 }
 
 



More information about the Openembedded-commits mailing list