From cea91c3bced68cc36fcf2fbe167214f69940d3da Mon Sep 17 00:00:00 2001 From: Sung-Jae Lee Date: Wed, 7 Sep 2016 00:45:33 +0900 Subject: [PATCH] Add proper support for custom installed llvm tool chain. (#7050) * Add LLVM_HOME enviroment variable support --- src/ToolBox/SOS/lldbplugin/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ToolBox/SOS/lldbplugin/CMakeLists.txt b/src/ToolBox/SOS/lldbplugin/CMakeLists.txt index 5ae712f..9f90a54 100644 --- a/src/ToolBox/SOS/lldbplugin/CMakeLists.txt +++ b/src/ToolBox/SOS/lldbplugin/CMakeLists.txt @@ -33,8 +33,9 @@ endif() set(ENABLE_LLDBPLUGIN ${CLR_CMAKE_PLATFORM_UNIX} CACHE BOOL "Enable building the SOS plugin for LLDB.") set(REQUIRE_LLDBPLUGIN ${CLR_CMAKE_PLATFORM_LINUX} CACHE BOOL "Require building the SOS plugin for LLDB.") -set(WITH_LLDB_LIBS "" CACHE PATH "Path to LLDB libraries") -set(WITH_LLDB_INCLUDES "" CACHE PATH "Path to LLDB headers") +set(LLVM_HOST_DIR "$ENV{LLVM_HOME}") +set(WITH_LLDB_LIBS "${LLVM_HOST_DIR}/lib" CACHE PATH "Path to LLDB libraries") +set(WITH_LLDB_INCLUDES "${LLVM_HOST_DIR}/include" CACHE PATH "Path to LLDB headers") if(NOT ENABLE_LLDBPLUGIN) return() -- 2.7.4