summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-12-16 18:51:59 +0000
committerArtem Belevich <tra@google.com>2015-12-16 18:51:59 +0000
commit7fda3c9ff30fd82e7e0cdf0d97288da3e1a20bf5 (patch)
tree363902be0addddc054b658179f26673bca5905c2 /clang/lib/Driver/ToolChains.cpp
parent5ac5d61b9c34dbc4c7beed9f34d30f55632d0669 (diff)
downloadbcm5719-llvm-7fda3c9ff30fd82e7e0cdf0d97288da3e1a20bf5.tar.gz
bcm5719-llvm-7fda3c9ff30fd82e7e0cdf0d97288da3e1a20bf5.zip
[CUDA] renamed cuda_runtime.h wrapper to __cuda_runtime.h
Currently it's easy to break CUDA compilation by passing "-isystem /path/to/cuda/include" to compiler which leads to compiler including real cuda_runtime.h from there instead of the wrapper we need. Renaming the wrapper ensures that we can include the wrapper regardless of user-specified include paths and files. Differential Revision: http://reviews.llvm.org/D15534 llvm-svn: 255802
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r--clang/lib/Driver/ToolChains.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 2d882eb5368..0921bc19947 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -4116,7 +4116,7 @@ void Linux::AddCudaIncludeArgs(const ArgList &DriverArgs,
if (CudaInstallation.isValid()) {
addSystemInclude(DriverArgs, CC1Args, CudaInstallation.getIncludePath());
CC1Args.push_back("-include");
- CC1Args.push_back("cuda_runtime.h");
+ CC1Args.push_back("__clang_cuda_runtime_wrapper.h");
}
}
OpenPOWER on IntegriCloud