diff options
| -rw-r--r-- | meta/classes/sanity.bbclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 8cdb06e185..ecc0a434a5 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
| @@ -327,11 +327,14 @@ def check_gcc_march(sanity_data): | |||
| 327 | if status != 0: | 327 | if status != 0: |
| 328 | # Check if GCC could work with march | 328 | # Check if GCC could work with march |
| 329 | status,result = commands.getstatusoutput("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test") | 329 | status,result = commands.getstatusoutput("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test") |
| 330 | if status == 0: | 330 | if status == 0: |
| 331 | result = True | 331 | result = True |
| 332 | else: | ||
| 333 | result = False | ||
| 332 | 334 | ||
| 333 | os.remove("gcc_test.c") | 335 | os.remove("gcc_test.c") |
| 334 | os.remove("gcc_test") | 336 | if os.path.exists("gcc_test"): |
| 337 | os.remove("gcc_test") | ||
| 335 | 338 | ||
| 336 | return result | 339 | return result |
| 337 | 340 | ||
