[PATCH] D40453: Add the nvidia-cuda-toolkit Debian package path to search path
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 28 13:37:47 PST 2017
tra added inline comments.
================
Comment at: lib/Driver/ToolChains/Cuda.cpp:81
+
+ if (Distro.IsDebian())
+ CudaPathCandidates.push_back(D.SysRoot + "/usr/lib/cuda");
----------------
No need for a named temporary. `if (Distro(D.getVFS).IsDebian())` should do.
Also, please add a comment describing why Debian needs a special case here and include reference to the bug report which has the details.
https://reviews.llvm.org/D40453
More information about the cfe-commits
mailing list