Skip to content

Commit 6464910

Browse files
committed
[cmake] Add LLVM_TARGET_TRIPLE_ENV to LLVMConfig.cmake.in
LLVM has a mechanism to switch the default target: LLVM_TARGET_TRIPLE_ENV. For example, regression tests with lit use this CMake variable. It matters only when building LLVM, not the other projects. Therefore, if they are built standalone, the value of the CMake variable should be propagated. In fact, however, it is not. This patch fixes it.
1 parent 0c3cf20 commit 6464910

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/cmake/modules/LLVMConfig.cmake.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
3636

3737
set(LLVM_TARGET_TRIPLE "@LLVM_TARGET_TRIPLE@")
3838

39+
set(LLVM_TARGET_TRIPLE_ENV "@LLVM_TARGET_TRIPLE_ENV@")
40+
3941
set(LLVM_HOST_TRIPLE "@LLVM_HOST_TRIPLE@")
4042

4143
set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)

0 commit comments

Comments
 (0)