Skip to content

Commit

Permalink
[cmake] Export LLVM_HOST_TRIPLE in the LLVMConfig.cmake
Browse files Browse the repository at this point in the history
This is referenced in several of the cmake files that are part of an llvm install and it is also useful by downstream components such as onnx-mlir.

Differential Revision: https://reviews.llvm.org/D106686
  • Loading branch information
sstamenova committed Jul 23, 2021
1 parent 4a3dc7d commit 328bb2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/cmake/modules/LLVMConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)

set(TARGET_TRIPLE "@TARGET_TRIPLE@")

set(LLVM_HOST_TRIPLE "@LLVM_HOST_TRIPLE@")

set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)

set(LLVM_ENABLE_WARNINGS @LLVM_ENABLE_WARNINGS@)
Expand Down

0 comments on commit 328bb2c

Please sign in to comment.