Skip to content

Commit 747d75e

Browse files
committed
[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. (cherry picked from commit 25cf941)
1 parent 77b656b commit 747d75e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ if(TARGET clang)
116116
endif()
117117
endif()
118118

119+
if (LLDB_BUILT_STANDALONE)
120+
set(LLVM_HOST_TRIPLE ${TARGET_TRIPLE})
121+
endif()
122+
119123
add_lldb_test_dependency(
120124
lit-cpuid
121125
llc

0 commit comments

Comments
 (0)