[PATCH] D15534: [CUDA] renamed cuda_runtime.h wrapper to __cuda_runtime.h

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 15 10:30:35 PST 2015


tra created this revision.
tra added a reviewer: echristo.
tra added a subscriber: cfe-commits.

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.


http://reviews.llvm.org/D15534

Files:
  lib/Driver/ToolChains.cpp
  lib/Headers/CMakeLists.txt
  lib/Headers/__cuda_runtime.h
  lib/Headers/cuda_runtime.h
  test/Driver/cuda-detect.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15534.42875.patch
Type: text/x-patch
Size: 8726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151215/bd971b07/attachment-0001.bin>


More information about the cfe-commits mailing list