diff options
| author | Vince Harron <vharron@google.com> | 2015-01-14 21:01:15 +0000 |
|---|---|---|
| committer | Vince Harron <vharron@google.com> | 2015-01-14 21:01:15 +0000 |
| commit | 4d2857321d0c8f05ba2ef0b1ebe90728a3d3fdce (patch) | |
| tree | 5aa5cfca17492baa8d6fb35b431ae09bff55873e /lldb/source | |
| parent | fad1639a12a60735545a4d59a35c82841131a51a (diff) | |
| download | bcm5719-llvm-4d2857321d0c8f05ba2ef0b1ebe90728a3d3fdce.tar.gz bcm5719-llvm-4d2857321d0c8f05ba2ef0b1ebe90728a3d3fdce.zip | |
Fixes compilation/run error with BUILD_SHARED_LIBS=TRUE
BUILD_SHARED_LIBS=TRUE currently isn't working for Linux x86_64
This patch fixes the link errors and also some runtime errors
Test Plan:
CC=clang CXX=clang++ cmake -GNinja -DBUILD_SHARED_LIBS=TRUE -DCMAKE_LINKER=ld.gold -DCMAKE_BUILD_TYPE=Debug ../../llvm
ninja
ninja check-lldb
llvm-svn: 226039
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/CMakeLists.txt b/lldb/source/CMakeLists.txt index 8c2ea91ef31..b972edfa41e 100644 --- a/lldb/source/CMakeLists.txt +++ b/lldb/source/CMakeLists.txt @@ -30,6 +30,7 @@ endif () if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows" ) add_subdirectory(API) endif () + add_subdirectory(Breakpoint) add_subdirectory(Commands) add_subdirectory(Core) @@ -44,8 +45,6 @@ add_subdirectory(Utility) include(../cmake/LLDBDependencies.cmake) -set(SHARED_LIBRARY 1) - if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) add_definitions( -DEXPORT_LIBLLDB ) endif() @@ -56,7 +55,7 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) # On Non-Windows, the corresponding file list is maintained in # source\API\CMakeLists.txt. When editing this list, do not forget to make a # corresponding change in that file as well (when appropriate). -add_lldb_library(liblldb +add_lldb_library(liblldb SHARED lldb.cpp lldb-log.cpp API/SBAddress.cpp |

