[all-commits] [llvm/llvm-project] c2c917: [Clang] Change default triple to LLVM_HOST_TRIPLE ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon May 8 13:55:08 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2c917f7f6680ec7a1214af9f5105c2beb9ba162
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Cuda.cpp

  Log Message:
  [Clang] Change default triple to LLVM_HOST_TRIPLE for the CUDA toolchain

When cross-compiling NVPTX we use the triple to indicate which paths to
search for the CUDA toolchain. Currently this uses the default target
triple. This might not be exactly correct, as this is the default triple
used to compile binaries, not the host system. We want the host triple
because it indicates which folders should hold CUDA.

Reviewed By: tra

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

More information about the All-commits mailing list