[libcxx-commits] [libcxxabi] e02c79a - [libc++abi] Remove old workaround for detecting libunwind (#176009)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 19 13:46:17 PST 2026


Author: Louis Dionne
Date: 2026-01-19T16:46:13-05:00
New Revision: e02c79a85ac31446a0022a15a3247599c928bef4

URL: https://github.com/llvm/llvm-project/commit/e02c79a85ac31446a0022a15a3247599c928bef4
DIFF: https://github.com/llvm/llvm-project/commit/e02c79a85ac31446a0022a15a3247599c928bef4.diff

LOG: [libc++abi] Remove old workaround for detecting libunwind (#176009)

This workaround should no longer be relevant since we don't support
building against libunwind headers from LLVM 14.

Added: 
    

Modified: 
    libcxxabi/src/cxa_personality.cpp

Removed: 
    


################################################################################
diff  --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp
index 81edd41383610..35f4e38077248 100644
--- a/libcxxabi/src/cxa_personality.cpp
+++ b/libcxxabi/src/cxa_personality.cpp
@@ -67,15 +67,6 @@
 #  pragma clang diagnostic ignored "-Wmissing-prototypes"
 #endif
 
-// TODO: This is a temporary workaround for libc++abi to recognize that it's being
-// built against LLVM's libunwind. LLVM's libunwind started reporting _LIBUNWIND_VERSION
-// in LLVM 15 -- we can remove this workaround after shipping LLVM 17. Once we remove
-// this workaround, it won't be possible to build libc++abi against libunwind headers
-// from LLVM 14 and before anymore.
-#if defined(____LIBUNWIND_CONFIG_H__) && !defined(_LIBUNWIND_VERSION)
-#   define _LIBUNWIND_VERSION
-#endif
-
 #if defined(__SEH__) && !defined(__USING_SJLJ_EXCEPTIONS__)
 #include <windows.h>
 #include <winnt.h>


        


More information about the libcxx-commits mailing list