forked from OSchip/llvm-project
More minor FreeBSD fixes.
- link libexecinfo (as libc is missing backtrace()) - enable FreeBSD-specific plugins Patch by Ed Maste! llvm-svn: 183233
This commit is contained in:
parent
c31b3524cb
commit
6f0a5edb3f
|
@ -246,6 +246,11 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|||
${DEBUG_SYMBOLS_LIBRARY})
|
||||
endif()
|
||||
|
||||
# On FreeBSD, link libexecinfo because libc is missing backtrace()
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
list(APPEND system_libs execinfo)
|
||||
endif()
|
||||
|
||||
#add_subdirectory(include)
|
||||
add_subdirectory(docs)
|
||||
add_subdirectory(scripts)
|
||||
|
|
|
@ -92,6 +92,15 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Linux" )
|
|||
)
|
||||
endif ()
|
||||
|
||||
# FreeBSD-only libraries
|
||||
if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
|
||||
list(APPEND LLDB_USED_LIBS
|
||||
lldbHostFreeBSD
|
||||
lldbPluginProcessFreeBSD
|
||||
lldbPluginProcessPOSIX
|
||||
)
|
||||
endif ()
|
||||
|
||||
# Darwin-only libraries
|
||||
if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
set(LLDB_VERS_GENERATED_FILE ${LLDB_BINARY_DIR}/source/LLDB_vers.c)
|
||||
|
|
|
@ -2,7 +2,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|||
add_subdirectory(Linux)
|
||||
add_subdirectory(POSIX)
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
#add_subdirectory(FreeBSD)
|
||||
add_subdirectory(FreeBSD)
|
||||
add_subdirectory(POSIX)
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
add_subdirectory(MacOSX-Kernel)
|
||||
|
|
Loading…
Reference in New Issue