Skip to content

Commit 33a50e0

Browse files
authored
[compiler-rt][test] Disable lld tests on SPARC (#100533)
As detailed in Issue #100320, a considerable number of tests that explicitly use `-fuse-ld=lld` `FAIL` on Linux/sparc64 due to several `lld` limitations (no 32-bit SPARC support, lack of support for various relocations, ...). To reduce the noise, this patch disables `COMPILER_RT_HAS_LLD` on SPARC wholesale. Tested on `sparc64-unknown-linux-gnu`.
1 parent 73c72f2 commit 33a50e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,10 @@ if(ANDROID)
797797
append_list_if(COMPILER_RT_HAS_FUSE_LD_LLD_FLAG -fuse-ld=lld SANITIZER_COMMON_LINK_FLAGS)
798798
append_list_if(COMPILER_RT_HAS_LLD -fuse-ld=lld COMPILER_RT_UNITTEST_LINK_FLAGS)
799799
endif()
800+
if(${COMPILER_RT_DEFAULT_TARGET_ARCH} MATCHES sparc)
801+
# lld has several bugs/limitations on SPARC, so disable (Issue #100320).
802+
set(COMPILER_RT_HAS_LLD FALSE)
803+
endif()
800804
pythonize_bool(COMPILER_RT_HAS_LLD)
801805
pythonize_bool(COMPILER_RT_TEST_USE_LLD)
802806

0 commit comments

Comments
 (0)