[all-commits] [llvm/llvm-project] 8e2051: [CUDA] Define __CUDACC__ before standard library h...

Raul Tambre via All-commits all-commits at lists.llvm.org
Fri Apr 17 12:56:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e20516540444618ad32dd11e835c05804053697
      https://github.com/llvm/llvm-project/commit/8e20516540444618ad32dd11e835c05804053697
  Author: Raul Tambre <raul at tambre.ee>
  Date:   2020-04-17 (Fri, 17 Apr 2020)

  Changed paths:
    M clang/lib/Headers/__clang_cuda_runtime_wrapper.h

  Log Message:
  -----------
  [CUDA] Define __CUDACC__ before standard library headers

libstdc++ since version 7 when GNU extensions are enabled (e.g. -std=gnu++11)
use it to avoid defining overloads using `__float128`.  This fixes compiling
with GNU extensions failing due to `__float128` being used.

Discovered at https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4442#note_737136.

Differential Revision: https://reviews.llvm.org/D78392




More information about the All-commits mailing list