diff options
| author | Artem Belevich <tra@google.com> | 2015-12-16 18:51:59 +0000 |
|---|---|---|
| committer | Artem Belevich <tra@google.com> | 2015-12-16 18:51:59 +0000 |
| commit | 7fda3c9ff30fd82e7e0cdf0d97288da3e1a20bf5 (patch) | |
| tree | 363902be0addddc054b658179f26673bca5905c2 /clang/test/Driver | |
| parent | 5ac5d61b9c34dbc4c7beed9f34d30f55632d0669 (diff) | |
| download | bcm5719-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/test/Driver')
| -rw-r--r-- | clang/test/Driver/cuda-detect.cu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/cuda-detect.cu b/clang/test/Driver/cuda-detect.cu index 160ca11964f..d8fba06605e 100644 --- a/clang/test/Driver/cuda-detect.cu +++ b/clang/test/Driver/cuda-detect.cu @@ -39,7 +39,7 @@ // RUN: -nocudalib --cuda-path=%S/Inputs/CUDA/usr/local/cuda %s 2>&1 \ // RUN: | FileCheck %s -check-prefix COMMON -check-prefix NOLIBDEVICE // Verify that we don't add include paths, link with libdevice or -// -include cuda_runtime without valid CUDA installation. +// -include __clang_cuda_runtime_wrapper.h without valid CUDA installation. // RUN: %clang -### -v --target=i386-unknown-linux --cuda-gpu-arch=sm_35 \ // RUN: --cuda-path=%S/no-cuda-there %s 2>&1 \ // RUN: | FileCheck %s -check-prefix COMMON \ @@ -59,6 +59,6 @@ // NOLIBDEVICE-NOT: "-target-feature" "+ptx42" // CUDAINC-SAME: "-internal-isystem" "{{.*}}/Inputs/CUDA/usr/local/cuda/include" // NOCUDAINC-NOT: "-internal-isystem" "{{.*}}/cuda/include" -// CUDAINC-SAME: "-include" "cuda_runtime.h" -// NOCUDAINC-NOT: "-include" "cuda_runtime.h" +// CUDAINC-SAME: "-include" "__clang_cuda_runtime_wrapper.h" +// NOCUDAINC-NOT: "-include" "__clang_cuda_runtime_wrapper.h" // COMMON-SAME: "-x" "cuda" |

