[Lldb-commits] [lldb] 25cf941 - [lldb/CMake] Set LLVM_HOST_TRIPLE from TARGET_TRIPLE in standalone builds.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 16 20:06:31 PST 2020
Author: Jonas Devlieghere
Date: 2020-01-16T20:06:25-08:00
New Revision: 25cf941275edacd5199550fef638005f2ecfd35b
URL: https://github.com/llvm/llvm-project/commit/25cf941275edacd5199550fef638005f2ecfd35b
DIFF: https://github.com/llvm/llvm-project/commit/25cf941275edacd5199550fef638005f2ecfd35b.diff
LOG: [lldb/CMake] Set LLVM_HOST_TRIPLE from TARGET_TRIPLE in standalone builds.
LLVMConfig doesn't export LLVM_HOST_TRIPLE, but it sets the
TARGET_TRIPLE based on this variable. So use that again for the compiler
invocations in the shell tests.
Added:
Modified:
lldb/test/CMakeLists.txt
Removed:
################################################################################
diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index 4d9dfa561782..21a0ca47b716 100644
--- a/lldb/test/CMakeLists.txt
+++ b/lldb/test/CMakeLists.txt
@@ -116,6 +116,10 @@ if(TARGET clang)
endif()
endif()
+if (LLDB_BUILT_STANDALONE)
+ set(LLVM_HOST_TRIPLE ${TARGET_TRIPLE})
+endif()
+
add_lldb_test_dependency(
lit-cpuid
llc
More information about the lldb-commits
mailing list