From 6b9635ed650b0c218c509983cc25410c25419773 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Tue, 13 Feb 2018 08:26:55 +0000 Subject: [PATCH] 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 --- clang/lib/Driver/ToolChains.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 189670ee5..5e1ddc349 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -1825,6 +1825,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) { -- 2.30.2