Skip to content

Commit a7e7ffd

Browse files
wmaxeymiscco
authored andcommitted
Avoid including yvals.h when the compiler is not MSVC. (NVIDIA#2545)
* Only include yvals when the compiler is MSVC * Use the right check --------- Co-authored-by: Michael Schellenberger Costa <[email protected]>
1 parent f5bc208 commit a7e7ffd

File tree

1 file changed

+1
-1
lines changed
  • libcudacxx/include/cuda/std/__cccl

1 file changed

+1
-1
lines changed

libcudacxx/include/cuda/std/__cccl/assert.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
//! _CCCL_ASSERT_IMPL_HOST should never be used directly
6363
#if defined(_CCCL_COMPILER_NVRTC) // There is no host standard library in nvrtc
6464
# define _CCCL_ASSERT_IMPL_HOST(expression, message) ((void) 0)
65-
#elif __has_include(<yvals_core.h>) // MSVC uses _STL_VERIFY from <yvals.h>
65+
#elif __has_include(<yvals.h>) && defined(_CCCL_COMPILER_MSVC) // MSVC uses _STL_VERIFY from <yvals.h>
6666
# include <yvals.h>
6767
# define _CCCL_ASSERT_IMPL_HOST(expression, message) _STL_VERIFY(expression, message)
6868
#else // ^^^ MSVC STL ^^^ / vvv !MSVC STL vvv

0 commit comments

Comments
 (0)