[libcxx-commits] [libcxxabi] ed4946f - [libc++abi] Avoid the warning: "__EXCEPTIONS" is not defined, evaluates to 0 [-Werror=undef]

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 30 10:34:50 PDT 2021


Author: Xiang Xiao
Date: 2021-08-30T13:34:28-04:00
New Revision: ed4946fe20964509b27b38e74331c36857d4be53

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

LOG: [libc++abi] Avoid the warning: "__EXCEPTIONS" is not defined, evaluates to 0 [-Werror=undef]

Differential Revision: https://reviews.llvm.org/D108896

Added: 
    

Modified: 
    libcxxabi/include/__cxxabi_config.h

Removed: 
    


################################################################################
diff  --git a/libcxxabi/include/__cxxabi_config.h b/libcxxabi/include/__cxxabi_config.h
index cffedb88df543..05ed8b6ca3b23 100644
--- a/libcxxabi/include/__cxxabi_config.h
+++ b/libcxxabi/include/__cxxabi_config.h
@@ -93,7 +93,7 @@
 #  if !__has_feature(cxx_exceptions)
 #    define _LIBCXXABI_NO_EXCEPTIONS
 #  endif
-#elif defined(_LIBCXXABI_COMPILER_GCC) && !__EXCEPTIONS
+#elif defined(_LIBCXXABI_COMPILER_GCC) && !defined(__EXCEPTIONS)
 #  define _LIBCXXABI_NO_EXCEPTIONS
 #endif
 


        


More information about the libcxx-commits mailing list