Skip to content

Commit 7b6963e

Browse files
committed
[compiler-rt] [Fuzzer] Fix tests linking buildbot failure (#144495)
Fix for #144495 by 6f4add3 broke sanitizer-aarch64-linux buildbot. compiler-rt/lib/fuzzer/tests build failed because the linker was looking gcc_s without '-l' appended. The CMake script was adding the library name without the required '-l' prefix. This patch adds the -l prefix changing gcc_s to -lgcc_s and gcc to -lgcc. https://lab.llvm.org/buildbot/#/builders/51/builds/18170
1 parent 118bfcd commit 7b6963e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/fuzzer/tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND
4545
list(APPEND FUZZER_UNWINDER_LIBS ${COMPILER_RT_UNWINDER_LINK_LIBS})
4646
elseif(COMPILER_RT_HAS_GCC_S_LIB)
4747
# As a fallback, use the shared libgcc_s library.
48-
list(APPEND FUZZER_UNWINDER_LIBS gcc_s)
48+
list(APPEND FUZZER_UNWINDER_LIBS -lgcc_s)
4949
elseif(COMPILER_RT_HAS_GCC_LIB)
5050
# As a final fallback, use the static libgcc library.
51-
list(APPEND FUZZER_UNWINDER_LIBS gcc)
51+
list(APPEND FUZZER_UNWINDER_LIBS -lgcc)
5252
elseif(NOT COMPILER_RT_USE_BUILTINS_LIBRARY)
5353
# If no unwinder is found and we aren't using the builtins library
5454
message(FATAL_ERROR "Fuzzer tests require a suitable unwinder, but none was found.")

0 commit comments

Comments
 (0)