Skip to content

Commit bf173ba

Browse files
rorthtru
authored andcommitted
[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`. (cherry picked from commit 33a50e0)
1 parent d728d60 commit bf173ba

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
@@ -801,6 +801,10 @@ if(ANDROID)
801801
append_list_if(COMPILER_RT_HAS_FUSE_LD_LLD_FLAG -fuse-ld=lld SANITIZER_COMMON_LINK_FLAGS)
802802
append_list_if(COMPILER_RT_HAS_LLD -fuse-ld=lld COMPILER_RT_UNITTEST_LINK_FLAGS)
803803
endif()
804+
if(${COMPILER_RT_DEFAULT_TARGET_ARCH} MATCHES sparc)
805+
# lld has several bugs/limitations on SPARC, so disable (Issue #100320).
806+
set(COMPILER_RT_HAS_LLD FALSE)
807+
endif()
804808
pythonize_bool(COMPILER_RT_HAS_LLD)
805809
pythonize_bool(COMPILER_RT_TEST_USE_LLD)
806810

0 commit comments

Comments
 (0)