forked from OSchip/llvm-project
[libcxxabi] Remove unnecessary define from build
Now that we're passing -D_LIBCPP_BUILDING_LIBRARY to the libc++abi
build, -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS is redundant
(fb3a00c327/libcxx/include/exception (L120-L121)
is the only use of _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS in
libc++, and that conditional also checks for _LIBCPP_BUILDING_LIBRARY).
Reviewed By: #libc_abi, phosek
Differential Revision: https://reviews.llvm.org/D102372
This commit is contained in:
parent
e73203a561
commit
6c05f2dab3
|
@ -477,10 +477,6 @@ endif()
|
|||
# Prevent libc++abi from having library dependencies on libc++
|
||||
add_definitions(-D_LIBCPP_DISABLE_EXTERN_TEMPLATE)
|
||||
|
||||
# Bring back `std::unexpected`, which is removed in C++17, to support
|
||||
# pre-C++17.
|
||||
add_definitions(-D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS)
|
||||
|
||||
if (MSVC)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue