forked from OSchip/llvm-project
[cmake] Build lldb-server on Darwin, set dep on FreeBSD.
Summary: This switches the decision as to whether or not to lldb-server should be built to check the same flag that was added that controls whether or not it is added as a dependency to the 'lldb' target. It also sets that flag on FreeBSD to maintain parity with the existing build configuration / situation on FreeBSD. Reviewers: labath, emaste, tfiala Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12925 llvm-svn: 247913
This commit is contained in:
parent
0792636eec
commit
40889cd75a
|
@ -261,8 +261,9 @@ endif()
|
|||
|
||||
# Figure out if lldb could use lldb-server. If so, then we'll
|
||||
# ensure we build lldb-server when an lldb target is being built.
|
||||
if ( ( CMAKE_SYSTEM_NAME MATCHES "Linux" ) OR
|
||||
( CMAKE_SYSTEM_NAME MATCHES "Darwin" ) )
|
||||
if ((CMAKE_SYSTEM_NAME MATCHES "Darwin") OR
|
||||
(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") OR
|
||||
(CMAKE_SYSTEM_NAME MATCHES "Linux"))
|
||||
set(LLDB_CAN_USE_LLDB_SERVER 1)
|
||||
else()
|
||||
set(LLDB_CAN_USE_LLDB_SERVER 0)
|
||||
|
|
|
@ -7,6 +7,6 @@ endif()
|
|||
if (NOT __ANDROID_NDK__)
|
||||
add_subdirectory(lldb-mi)
|
||||
endif()
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if (LLDB_CAN_USE_LLDB_SERVER)
|
||||
add_subdirectory(lldb-server)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue