]> granicus.if.org Git - clang/commit
[CUDA] Don't define __NVCC__.
authorJustin Lebar <jlebar@google.com>
Wed, 23 Mar 2016 22:42:27 +0000 (22:42 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 23 Mar 2016 22:42:27 +0000 (22:42 +0000)
commit7b9fff9af1b6972462dca7dc65f3a51662ff4d69
treefb291ab35b56005be2bddd5b59fc1c569d52c2f3
parent3d2dbde2fe9656fef515029dcdf33202da84f7ba
[CUDA] Don't define __NVCC__.

Summary:
We decided this makes life too difficult for code authors.  For example,
people may want to detect NVCC and disable variadic templates, which
NVCC does not support, but which we do.

Since people are going to have to change compiler flags *anyway* in
order to compile with clang, if they really want the old behavior, they
can pass -D__NVCC__.

Tested with tensorflow and thrust, no apparent problems.

Reviewers: tra

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264205 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/__clang_cuda_runtime_wrapper.h