[llvm] e07e08f - Revert "llvm-shlib: Create object libraries for each component and link against them"
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 5 10:46:50 PDT 2021
Author: Tom Stellard
Date: 2021-04-05T10:46:19-07:00
New Revision: e07e08f3662ad821b9da99daedf2445ed1b18d2c
URL: https://github.com/llvm/llvm-project/commit/e07e08f3662ad821b9da99daedf2445ed1b18d2c
DIFF: https://github.com/llvm/llvm-project/commit/e07e08f3662ad821b9da99daedf2445ed1b18d2c.diff
LOG: Revert "llvm-shlib: Create object libraries for each component and link against them"
This reverts commit 43ceb74eb1a5801662419fb66a6bf0d5414f1ec5.
This caused some build failures: https://bugs.llvm.org/show_bug.cgi?id=49818
Added:
Modified:
llvm/cmake/modules/AddLLVM.cmake
llvm/tools/llvm-shlib/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index c7a50b7a393ef..2f055c7799624 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -488,7 +488,6 @@ function(llvm_add_library name)
add_dependencies(${obj_name} ${link_lib})
endif()
endforeach()
- target_link_libraries(${obj_name} ${ARG_LINK_LIBS})
endif()
endif()
@@ -747,7 +746,7 @@ function(add_llvm_component_library name)
"COMPONENT_NAME;ADD_TO_COMPONENT"
""
${ARGN})
- add_llvm_library(${name} COMPONENT_LIB OBJECT ${ARG_UNPARSED_ARGUMENTS})
+ add_llvm_library(${name} COMPONENT_LIB ${ARG_UNPARSED_ARGUMENTS})
string(REGEX REPLACE "^LLVM" "" component_name ${name})
set_property(TARGET ${name} PROPERTY LLVM_COMPONENT_NAME ${component_name})
diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
index 728995ad8b299..b0ee19049e6fa 100644
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
@@ -33,10 +33,6 @@ if(LLVM_BUILD_LLVM_DYLIB)
add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${INSTALL_WITH_TOOLCHAIN} ${SOURCES})
list(REMOVE_DUPLICATES LIB_NAMES)
-
- # Link against the object libraries instead of static libraries.
- list(TRANSFORM LIB_NAMES PREPEND "obj.")
-
if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "GNU")
More information about the llvm-commits
mailing list