Commit 61f22f70 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

[runtimes] Initialize LLVM_DEFAULT_TARGET_TRIPLE if not set by the caller

Differential Revision: https://reviews.llvm.org/D109716
parent 9aeecdfa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)