mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
sanity.bbclass: non-zero status means that we need -march.
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. (From OE-Core rev: 217fd857df78c66eae853f935e9cdafcbeb3bc31) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8c8483dc98
commit
ad276d7d89
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user