Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Add the non-nvcc defines for <complex> to maintain compatibility with…
Browse files Browse the repository at this point in the history
… upstream tests.
  • Loading branch information
wmaxey committed Nov 12, 2020
1 parent 59bf545 commit 058ed4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libcxx/include/__config
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@
// This is not mutually exclusive with other compilers, as NVCC uses a host
// compiler.
# define _LIBCUDACXX_COMPILER_NVCC
#else
// As NVCC does not really support `long double` the type is ignored
# define _LIBCUDACXX_HAS_COMPLEX_LONG_DOUBLE
// Also, since we cannot silence non '_' prefixed literal warnings, we need to disable some UDLs
# define _LIBCUDACXX_HAS_STL_LITERALS
#endif

#if defined(_LIBCUDACXX_COMPILER_GCC) && __cplusplus < 201103L
Expand Down

0 comments on commit 058ed4f

Please sign in to comment.