Skip to content

Commit

Permalink
test for exceptions support on msvc with the _CPPUNWIND macro (#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler authored Oct 14, 2024
1 parent 4be9578 commit 59fc1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__cccl/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef _CCCL_NO_EXCEPTIONS
# if defined(CCCL_DISABLE_EXCEPTIONS) // Escape hatch for users to manually disable exceptions
# define _CCCL_NO_EXCEPTIONS
# elif defined(_CCCL_COMPILER_NVRTC) || (defined(_CCCL_COMPILER_MSVC) && _HAS_EXCEPTIONS == 0) \
# elif defined(_CCCL_COMPILER_NVRTC) || (defined(_CCCL_COMPILER_MSVC) && _CPPUNWIND == 0) \
|| (!defined(_CCCL_COMPILER_MSVC) && !__EXCEPTIONS) // Catches all non msvc based compilers
# define _CCCL_NO_EXCEPTIONS
# endif
Expand Down

0 comments on commit 59fc1bf

Please sign in to comment.