diff options
author | Nathan Lanza <nathan@lanza.io> | 2019-07-18 23:40:23 +0000 |
---|---|---|
committer | Nathan Lanza <nathan@lanza.io> | 2019-07-18 23:40:23 +0000 |
commit | 01eb3ab70c98db4c4a1e5c63fc3a4f8a94e19bd5 (patch) | |
tree | cbbee98816e9263a4ec6ab98f66bd759bbb68d5f | |
parent | 16a9632558e7352ae39cada6e4ae9297fb67a33c (diff) | |
download | bcm5719-llvm-01eb3ab70c98db4c4a1e5c63fc3a4f8a94e19bd5.tar.gz bcm5719-llvm-01eb3ab70c98db4c4a1e5c63fc3a4f8a94e19bd5.zip |
[cmake] Update NATIVE build variables to account for standalone changes
Summary:
LLDB_PATH_TO_{CLANG,LLVM}_BUILD were removed and replaced with
{LLVM,Clang}_DIR. Adjust the NATIVE build to account for this.
Subscribers: mgorny
Differential Revision: https://reviews.llvm.org/D64959
llvm-svn: 366513
-rw-r--r-- | lldb/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index a963ed6ba6b..1c3f079aeda 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -42,15 +42,14 @@ endif () if(CMAKE_CROSSCOMPILING AND LLDB_BUILT_STANDALONE) set(LLVM_USE_HOST_TOOLS ON) include(CrossCompile) - if (NOT LLDB_PATH_TO_NATIVE_LLVM_BUILD OR - NOT LLDB_PATH_TO_NATIVE_CLANG_BUILD) + if (NOT NATIVE_LLVM_DIR OR NOT NATIVE_Clang_DIR) message(FATAL_ERROR - "Crosscompiling standalone requires the variables LLDB_PATH_TO_NATIVE_{CLANG,LLVM}_BUILD + "Crosscompiling standalone requires the variables NATIVE_{CLANG,LLVM}_DIR for building the native lldb-tblgen used during the build process.") endif() llvm_create_cross_target(lldb NATIVE "" Release - -DLLDB_PATH_TO_LLVM_BUILD=${LLDB_PATH_TO_NATIVE_LLVM_BUILD} - -DLLDB_PATH_TO_CLANG_BUILD=${LLDB_PATH_TO_NATIVE_CLANG_BUILD}) + -DLLVM_DIR=${NATIVE_LLVM_DIR} + -DClang_DIR=${NATIVE_Clang_DIR}) endif() add_subdirectory(utils/TableGen) |