[flang-commits] [PATCH] D158957: [flang][runtime] Avoid dependency on libc++ for `std::__libcpp_verbose_abort`

Martin Storsjö via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Sep 1 02:59:23 PDT 2023


mstorsjo added reviewers: klausler, vzakhari.
mstorsjo added a comment.

Adding some more flang people to have a look at this one. The issue is that the flang runtime is using the `<variant>` header from the C++ standard library, while the flang runtime generally doesn't want to have a link-time dependency on the C++ standard library, as far as I know. (At least when linking, the clang/flang driver that drives the link doesn't link in any C++ standard library for MinGW targets.)

With current libc++ headers, the use of `<variant>` ends up with an undefined reference to `std::__libcpp_verbose_abort`, which is something that libc++ itself provides but the user also is allowed to provide their own to override it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158957/new/

https://reviews.llvm.org/D158957



More information about the flang-commits mailing list