Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] sanity.bbclass: non-zero status means that we need -march.
@ 2013-06-11 18:27 Randy MacLeod
  0 siblings, 0 replies; only message in thread
From: Randy MacLeod @ 2013-06-11 18:27 UTC (permalink / raw)
  To: openembedded-core

A non-zero status from the march test for gcc means that the "march" flag
is needed. Correct the logic to return True in this case.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
 meta/classes/sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 6cad4bc..1c45b5b 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -348,7 +348,7 @@ def check_gcc_march(sanity_data):
         if status != 0:
             # Check if GCC could work with march
             status,result = oe.utils.getstatusoutput("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test")
-            if status == 0: 
+            if status != 0: 
                 result = True
             else:
                 result = False
-- 
1.8.2.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-11 18:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 18:27 [PATCH] sanity.bbclass: non-zero status means that we need -march Randy MacLeod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox