[libcxx-commits] [libcxx] [libc++] Guard ..._REMOVED_UNCAUGHT_EXCEPTION behind ifndef (PR #106719)

Danial Klimkin via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 30 06:08:00 PDT 2024


================
@@ -6,7 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION
+#ifndef _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION
+#  define _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION
+#endif
----------------
dklimkin wrote:

It's Bazel and we build several (many) projects with the same build flags. Some of them use the removed `uncaught_exception` and fail without the global flag. But with the global flag libcxx fails to build.

The projects are too many and we don't own all of them, thus we got to set the build flags globally.

https://github.com/llvm/llvm-project/pull/106719


More information about the libcxx-commits mailing list