[PATCH] D14292: [libcxx] Make it possible to build a no-exceptions variant of libcxx.

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 10:13:58 PST 2015


rmaprath created this revision.
rmaprath added reviewers: rengolin, mclow.lists.
rmaprath added a subscriber: cfe-commits.

Fixes a small omission in libcxx that prevents libcxx being built when -DLIBCXX_ENABLE_EXCEPTIONS=0 is used.

I will do a follow-up patch to introduce the new libc++ build to the buildbot.

http://reviews.llvm.org/D14292

Files:
  src/future.cpp

Index: src/future.cpp
===================================================================
--- src/future.cpp
+++ src/future.cpp
@@ -221,10 +221,12 @@
 {
     if (__state_)
     {
+#ifndef _LIBCPP_NO_EXCEPTIONS
         if (!__state_->__has_value() && __state_->use_count() > 1)
             __state_->set_exception(make_exception_ptr(
                       future_error(make_error_code(future_errc::broken_promise))
                                                       ));
+#endif // _LIBCPP_NO_EXCEPTIONS
         __state_->__release_shared();
     }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14292.39082.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151103/73032d11/attachment-0001.bin>


More information about the cfe-commits mailing list