From: LLVM Packaging Team Date: Sat, 9 Dec 2017 18:56:52 +0000 (+0000) Subject: update-cuda-search-path X-Git-Tag: archive/raspbian/1%5.0.1-2+rpi1^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2aa397c76900e677265c9063ae9d1a0cacef5202;p=llvm-toolchain-5.0.git update-cuda-search-path let clang try that path by default, too, s.t. an explicit --cuda-path is not needed for the nvidia-cuda-toolkit/non-free packages try the new path *after* the default paths /usr/local/cuda{,-X.Y} to not interfere with cuda installations from nvidia's installer Gbp-Pq: Name update-cuda-search-path.patch --- diff --git a/clang/lib/Driver/ToolChains/Cuda.cpp b/clang/lib/Driver/ToolChains/Cuda.cpp index 935a5a37a..d0e7fdd75 100644 --- a/clang/lib/Driver/ToolChains/Cuda.cpp +++ b/clang/lib/Driver/ToolChains/Cuda.cpp @@ -71,6 +71,7 @@ CudaInstallationDetector::CudaInstallationDetector( CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda"); for (const char *Ver : Versions) CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-" + Ver); + CudaPathCandidates.push_back(D.SysRoot + "/usr/lib/cuda"); } for (const auto &CudaPath : CudaPathCandidates) {