Skip to content

Commit 7cc5d07

Browse files
committed
Revert "[compiler-rt] Check for and use -lunwind when linking with -nodefaultlibs (#65912)"
This reverts commit 64c0bdd. This seems to run into errors on some buildbots; configure errors out like this: -- Looking for _Unwind_RaiseException in unwind -- Looking for _Unwind_RaiseException in unwind - not found CMake Error at /usr/share/cmake-3.25/Modules/CheckLibraryExists.cmake:71 (try_compile): Only libraries may be used as try_compile or try_run IMPORTED LINK_LIBRARIES. Got unwind of type UTILITY. Call Stack (most recent call first): /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/cmake/config-ix.cmake:66 (check_library_exists) /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/CMakeLists.txt:281 (include)
1 parent f167dc4 commit 7cc5d07

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler-rt/cmake/config-ix.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ if (C_SUPPORTS_NODEFAULTLIBS_FLAG)
6363
moldname mingwex msvcrt)
6464
list(APPEND CMAKE_REQUIRED_LIBRARIES ${MINGW_LIBRARIES})
6565
endif()
66-
check_library_exists(unwind _Unwind_RaiseException "" COMPILER_RT_HAS_LIBUNWIND)
67-
if (COMPILER_RT_HAS_LIBUNWIND)
68-
# If we're omitting default libraries, we might need to manually link in libunwind.
69-
# This can affect whether we detect a statically linked libc++ correctly.
70-
list(APPEND CMAKE_REQUIRED_LIBRARIES unwind)
71-
endif()
7266
endif ()
7367

7468
# CodeGen options.

0 commit comments

Comments
 (0)