Skip to content

Commit

Permalink
[runtimes] Initialize LLVM_DEFAULT_TARGET_TRIPLE if not set by the ca…
Browse files Browse the repository at this point in the history
…ller

Differential Revision: https://reviews.llvm.org/D109716
  • Loading branch information
mstorsjo committed Sep 14, 2021
1 parent 9aeecdf commit 61f22f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtimes/CMakeLists.txt
Expand Up @@ -104,6 +104,11 @@ include(HandleLLVMOptions)

find_package(Python3 REQUIRED COMPONENTS Interpreter)

if (NOT LLVM_DEFAULT_TARGET_TRIPLE)
include(GetHostTriple)
get_host_triple(LLVM_DEFAULT_TARGET_TRIPLE)
endif()

# Use libtool instead of ar if you are both on an Apple host, and targeting Apple.
if(CMAKE_HOST_APPLE AND APPLE)
include(UseLibtool)
Expand Down

0 comments on commit 61f22f7

Please sign in to comment.