[all-commits] [llvm/llvm-project] fd582e: [CUDA] Move CUDA SDK include path further down the...

Artem Belevich via All-commits all-commits at lists.llvm.org
Tue Sep 28 11:30:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd582eeffe582665eacac522617a15e17e9872cd
      https://github.com/llvm/llvm-project/commit/fd582eeffe582665eacac522617a15e17e9872cd
  Author: Artem Belevich <tra at google.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Cuda.cpp
    M clang/test/Driver/cuda-detect.cu

  Log Message:
  -----------
  [CUDA] Move CUDA SDK include path further down the include search path.

This allows clang to work on Linux distributions like Debian where
<CUDA-PATH>/include may be a symlink to /usr/include. We only need
`cuda_wrappers` to be present before the standard C++ library headers.
The CUDA SDK headers themselves do not need to be found that early.

This addresses https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995122
mentioned in post-commit comments on D108247

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




More information about the All-commits mailing list