From 50d2b7c240cc2c6cd8419f13c33236f2d2e3e85c Mon Sep 17 00:00:00 2001 From: Evgeny Pavlov Date: Thu, 28 Apr 2016 15:38:51 +0400 Subject: Initial support of lldb-3.8 for libsosplugin (#4473) --- cross/arm/toolchain.cmake | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cross/arm') diff --git a/cross/arm/toolchain.cmake b/cross/arm/toolchain.cmake index 9cc92798af..84ae2a593e 100644 --- a/cross/arm/toolchain.cmake +++ b/cross/arm/toolchain.cmake @@ -34,5 +34,13 @@ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) -set(WITH_LLDB_LIBS "${CROSS_ROOTFS}/usr/lib/${TOOLCHAIN}" CACHE STRING "") -set(WITH_LLDB_INCLUDES "${CROSS_ROOTFS}/usr/lib/llvm-3.6/include" CACHE STRING "") +set(LLVM_ARM_DIR "$ENV{LLVM_ARM_HOME}") +if(LLVM_ARM_DIR) + set(WITH_LLDB_LIBS "${LLVM_ARM_DIR}/lib/" CACHE STRING "") + set(WITH_LLDB_INCLUDES "${LLVM_ARM_DIR}/include" CACHE STRING "") + set(LLDB_H "${WITH_LLDB_INCLUDES}" CACHE STRING "") + set(LLDB "${LLVM_ARM_DIR}/lib/liblldb.so" CACHE STRING "") +else() + set(WITH_LLDB_LIBS "${CROSS_ROOTFS}/usr/lib/${TOOLCHAIN}" CACHE STRING "") + set(WITH_LLDB_INCLUDES "${CROSS_ROOTFS}/usr/lib/llvm-3.6/include" CACHE STRING "") +endif() -- cgit v1.2.3