|
| 1 | +From 8e51f55289eef78b08edb845023c1a7c9c0191b5 Mon Sep 17 00:00:00 2001 |
| 2 | +From: David Candler < [email protected]> |
| 3 | +Date: Wed, 23 Oct 2024 14:40:58 +0100 |
| 4 | +Subject: [PATCH] Remove armv4t/armv5t from check-all targets |
| 5 | + |
| 6 | +The compiler-rt and libcxx tests for armv4t and armv5t variants |
| 7 | +currently hang until a timeout is reached. Rather than disable the |
| 8 | +tests, this patch removes them from the check-all targets. This |
| 9 | +allows the tests to still be run while investigating the issue, but |
| 10 | +does not interrupt overall testing of the toolchain. |
| 11 | +--- |
| 12 | + CMakeLists.txt | 18 +++++++++++++++--- |
| 13 | + 1 file changed, 15 insertions(+), 3 deletions(-) |
| 14 | + |
| 15 | +diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 16 | +index 60ec6c6..fa5b462 100644 |
| 17 | +--- a/CMakeLists.txt |
| 18 | ++++ b/CMakeLists.txt |
| 19 | +@@ -1310,7 +1310,11 @@ function(add_compiler_rt_tests variant) |
| 20 | + ) |
| 21 | + add_custom_target(check-compiler-rt-${variant}) |
| 22 | + add_dependencies(check-compiler-rt-${variant} compiler_rt_${variant}-check-compiler-rt) |
| 23 | +- add_dependencies(check-compiler-rt check-compiler-rt-${variant}) |
| 24 | ++ # Do not add armv4 or armv5 tests to the check-all |
| 25 | ++ # targets as they currently hang. |
| 26 | ++ if(NOT VARIANT_COMPILE_FLAGS MATCHES "-march=armv4|5") |
| 27 | ++ add_dependencies(check-compiler-rt check-compiler-rt-${variant}) |
| 28 | ++ endif() |
| 29 | + add_dependencies(check-llvm-toolchain-runtimes-${variant} check-compiler-rt-${variant}) |
| 30 | + endfunction() |
| 31 | + |
| 32 | +@@ -1334,7 +1338,11 @@ function(add_libcxx_libcxxabi_libunwind_tests variant) |
| 33 | + ) |
| 34 | + add_custom_target(${check_target}-${variant_with_extensions}) |
| 35 | + add_dependencies(${check_target}-${variant_with_extensions} ${target_name}-${check_target}) |
| 36 | +- add_dependencies(${check_target} ${target_name}-${check_target}) |
| 37 | ++ # Do not add armv4 or armv5 tests to the check-all |
| 38 | ++ # targets as they currently hang. |
| 39 | ++ if(NOT variant MATCHES "-march=armv4|5") |
| 40 | ++ add_dependencies(${check_target} ${target_name}-${check_target}) |
| 41 | ++ endif() |
| 42 | + add_dependencies(check-llvm-toolchain-runtimes-${variant} ${check_target}-${variant_with_extensions}) |
| 43 | + endforeach() |
| 44 | + endfunction() |
| 45 | +@@ -1499,7 +1507,11 @@ function(add_library_variant target_arch) |
| 46 | + message("C++ runtime libraries tests disabled for ${variant}") |
| 47 | + else() |
| 48 | + add_custom_target(check-llvm-toolchain-runtimes-${variant}) |
| 49 | +- add_dependencies(check-llvm-toolchain-runtimes check-llvm-toolchain-runtimes-${variant}) |
| 50 | ++ # Do not add armv4 or armv5 tests to the check-all |
| 51 | ++ # targets as they currently hang. |
| 52 | ++ if(NOT VARIANT_COMPILE_FLAGS MATCHES "-march=armv4|5") |
| 53 | ++ add_dependencies(check-llvm-toolchain-runtimes check-llvm-toolchain-runtimes-${variant}) |
| 54 | ++ endif() |
| 55 | + add_compiler_rt_tests("${variant}") |
| 56 | + if(CXX_LIBS) |
| 57 | + add_libcxx_libcxxabi_libunwind_tests("${variant}") |
| 58 | +-- |
| 59 | +2.34.1 |
| 60 | + |
0 commit comments