summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-24 21:28:01 +0000
committerZachary Turner <zturner@google.com>2015-02-24 21:28:01 +0000
commit0980447a5f8e4b48158c0b68a09fa8a1c876861d (patch)
tree1c0251e7f447a8e4f507be3502afed532ace0229 /lldb/source/API
parentd3f2d321d76fa231d82959769b9d71b16374aef1 (diff)
downloadbcm5719-llvm-0980447a5f8e4b48158c0b68a09fa8a1c876861d.tar.gz
bcm5719-llvm-0980447a5f8e4b48158c0b68a09fa8a1c876861d.zip
Revert "[CMake] Change lldbAPI to be a CMake OBJECT library."
This reverts commit r230380. It causes CMake to fail on certain machines with an error about needing to use string(STRIP_GENEX). llvm-svn: 230382
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/CMakeLists.txt19
1 files changed, 2 insertions, 17 deletions
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt
index a6f4349b7b7..65ce88e4b97 100644
--- a/lldb/source/API/CMakeLists.txt
+++ b/lldb/source/API/CMakeLists.txt
@@ -1,25 +1,10 @@
set(LLVM_NO_RTTI 1)
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
- add_definitions( -DEXPORT_LIBLLDB )
+add_definitions( -DEXPORT_LIBLLDB )
endif()
-# An OBJECT library is a special type of CMake library that produces
-# no archive, has no link interface, and no link inputs. It is like
-# a regular archive, just without the physical output. To link against
-# an OBJECT library, you reference it in the *source* file list of a
-# library using the special syntax $<TARGET_OBJECTS:lldbAPI>. This will
-# cause every object file to be passed to the linker independently, as
-# opposed to a single archive being passed to the linker.
-#
-# This is *extremely* important on Windows. lldbAPI exports all of the
-# SB classes using __declspec(dllexport). Unfortunately for technical
-# reasons it is not possible (well, extremely difficult) to get the linker
-# to propagate a __declspec(dllexport) attribute from a symbol in an
-# object file in an archive to a DLL that links against that archive.
-# The solution to this is for the DLL to link the object file directly.
-# So lldbAPI must be an OBJECT library.
-add_lldb_library(lldbAPI OBJECT
+add_lldb_library(lldbAPI
SBAddress.cpp
SBAttachInfo.cpp
SBBlock.cpp
OpenPOWER on IntegriCloud