summaryrefslogtreecommitdiffstats
path: root/include/__debug
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-28 05:20:27 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-28 05:20:27 +0000
commit51d64bbc8c962b973f66c1d8f0d10ec96119c4c6 (patch)
treed5b6c6f053dff1f1aeaa90ceb6a73d5646b28265 /include/__debug
parent01eb99ac7bb111520d011748fb9fff176d2e64d7 (diff)
downloadexternal_libcxx-51d64bbc8c962b973f66c1d8f0d10ec96119c4c6.tar.gz
external_libcxx-51d64bbc8c962b973f66c1d8f0d10ec96119c4c6.tar.bz2
external_libcxx-51d64bbc8c962b973f66c1d8f0d10ec96119c4c6.zip
Fix debug mode build w/o exceptions
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/__debug')
-rw-r--r--include/__debug3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/__debug b/include/__debug
index e3a5ec965..e0cef09ee 100644
--- a/include/__debug
+++ b/include/__debug
@@ -82,6 +82,9 @@ bool __libcpp_set_debug_function(__libcpp_debug_function_type __func);
// Setup the throwing debug handler during dynamic initialization.
#if _LIBCPP_DEBUG_LEVEL >= 1 && defined(_LIBCPP_DEBUG_USE_EXCEPTIONS)
+# if defined(_LIBCPP_NO_EXCEPTIONS)
+# error _LIBCPP_DEBUG_USE_EXCEPTIONS cannot be used when exceptions are disabled.
+# endif
static bool __init_dummy = __libcpp_set_debug_function(__libcpp_throw_debug_function);
#endif