[PATCH] D36537: [OpenMP] Enable executable lookup into driver directory.
Gheorghe-Teodor Bercea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 9 12:02:12 PDT 2017
gtbercea updated this revision to Diff 110447.
gtbercea added a comment.
Add comment.
https://reviews.llvm.org/D36537
Files:
lib/Driver/ToolChains/Cuda.cpp
Index: lib/Driver/ToolChains/Cuda.cpp
===================================================================
--- lib/Driver/ToolChains/Cuda.cpp
+++ lib/Driver/ToolChains/Cuda.cpp
@@ -438,6 +438,9 @@
CudaInstallation(D, HostTC.getTriple(), Args), OK(OK) {
if (CudaInstallation.isValid())
getProgramPaths().push_back(CudaInstallation.getBinPath());
+ // Lookup binaries into the driver directory, this is used to
+ // discover the clang-offload-bundler executable.
+ getProgramPaths().push_back(getDriver().Dir);
}
void CudaToolChain::addClangTargetOptions(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36537.110447.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170809/13f79b03/attachment.bin>
More information about the cfe-commits
mailing list