[PATCH] D40453: Add the nvidia-cuda-toolkit Debian package path to search path

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 25 01:25:22 PST 2017


sylvestre.ledru created this revision.

Reported here:
http://bugs.debian.org/882505

Patch by Andreas Beckmann


https://reviews.llvm.org/D40453

Files:
  lib/Driver/ToolChains/Cuda.cpp


Index: lib/Driver/ToolChains/Cuda.cpp
===================================================================
--- lib/Driver/ToolChains/Cuda.cpp
+++ lib/Driver/ToolChains/Cuda.cpp
@@ -75,6 +75,7 @@
     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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40453.124250.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171125/d41033ec/attachment.bin>


More information about the cfe-commits mailing list