Revert "[compiler-rt] Make use of undefined symbols configurable"

This reverts commit ed7086ad46.
This reverts commit b9792638b0.

This breaks cmake with message:

    CMake Error at llvm-project/compiler-rt/CMakeLists.txt:449:
      Parse error.  Expected "(", got newline with text "
This commit is contained in:
Nikita Popov 2021-06-22 21:17:40 +02:00
parent 7bb7fa12e7
commit ae1093921f
1 changed files with 1 additions and 9 deletions

View File

@ -437,18 +437,10 @@ else()
endif()
append_list_if(COMPILER_RT_HAS_LIBC c SANITIZER_COMMON_LINK_LIBS)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
list(APPEND SANITIZER_COMMON_LINK_LIBS zircon)
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
set(SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT ON)
else()
set(SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT OFF)
endif
option(SANITIZER_NO_UNDEFINED_SYMBOLS "Report error on unresolved symbol references" ${SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT})
if (SANITIZER_NO_UNDEFINED_SYMBOLS)
list(APPEND SANITIZER_COMMON_LINK_FLAGS -Wl,-z,defs)
list(APPEND SANITIZER_COMMON_LINK_LIBS zircon)
endif()
# TODO: COMPILER_RT_COMMON_CFLAGS and COMPILER_RT_COMMON_LINK_FLAGS are