[PATCH] D142279: [cmake] Use LLVM_ENABLE_ASSERTIONS to enable assertions in libstdc++

Slava Zakharin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 19:10:29 PST 2023


vzakhari added a comment.

In D142279#4086692 <https://reviews.llvm.org/D142279#4086692>, @foad wrote:

> In D142279#4086638 <https://reviews.llvm.org/D142279#4086638>, @vzakhari wrote:
>
>> In D142279#4086540 <https://reviews.llvm.org/D142279#4086540>, @vzakhari wrote:
>>
>>> Trying to reproduce `Runtime/no-cpp-dep.c`...
>>
>> It works for me with gcc as the build compiler.
>
> Interesting. I can reproduce with clang as the host compiler but not with gcc. I'm using clang-14 and gcc-11 on Ubuntu 22.04.

Sorry, I could not reproduce it, but I have older clang and gcc.  I may suggest preprocessing `unit.cpp` (that is used to produce `unit.cpp.o` which is part of `libFortranRuntime.a`) and see where `std::__glibcxx_assert_fail` reference is coming from and how/why.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142279



More information about the llvm-commits mailing list