[all-commits] [llvm/llvm-project] 4ec7df: [CMake] Only set LLVM_DEFAULT_TARGET_TRIPLE to LLV...

Xiang Li via All-commits all-commits at lists.llvm.org
Fri Nov 4 14:34:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ec7dff27d90d7abe263cfae115cc959c05f0080
      https://github.com/llvm/llvm-project/commit/4ec7dff27d90d7abe263cfae115cc959c05f0080
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/test/Examples/OrcV2Examples/lljit-with-remote-debugging.test
    M llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test

  Log Message:
  -----------
  [CMake] Only set LLVM_DEFAULT_TARGET_TRIPLE to LLVM_HOST_TRIPLE when native target is enabled

This is for case when native target like X86 is not in LLVM_TARGETS_TO_BUILD.
Right now LLVM_DEFAULT_TARGET_TRIPLE is set to LLVM_HOST_TRIPLE even when native target is not enabled,
As a result, many lit tests will fail because default_triple is set for lit test but not enabled when build LLVM.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D134972




More information about the All-commits mailing list