[CUDA] Raise an error if the CUDA install can't be found.
authorJustin Lebar <jlebar@google.com>
Sat, 16 Apr 2016 00:11:11 +0000 (00:11 +0000)
committerJustin Lebar <jlebar@google.com>
Sat, 16 Apr 2016 00:11:11 +0000 (00:11 +0000)
commit423019d059897f104c3c435996896df335983b73
tree6a1c32420960d511b2bae9a738758141eeca7965
parent4d247e7012ae6355c9b63b6a6549adadd0a16fd1
[CUDA] Raise an error if the CUDA install can't be found.

Summary:
Without this change, we silently proceed on without including
__clang_cuda_runtime_wrapper.h.  This leads to very strange behavior --
you say you're compiling CUDA code, but e.g. __device__ is not defined!

Reviewers: tra

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D19180

llvm-svn: 266496
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/ToolChains.cpp