[libcxx-commits] [libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Probe for -nostdlib++ and -nostdinc++ with the C compiler (PR #108357)

Vitaly Buka via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 19 00:41:47 PST 2024


vitalybuka wrote:

> > #120370 was reverted, because libc++ tests expose major problem:
> > Tests and likely many users can have `-nostdlib++ -lc++`.
> > The if we remove c++ sanitizer runtimes from linking it will break them and force to add `-fsanitize-link-c++-runtime`
> 
> That's indeed a problem... However the libc++ test failure, as far as I can see, seems to be that there was a libc++ test that used to fail when built with sanitizers, but that test now no longer fail in that configuration. (I'm not entirely sure why it did use to fail though - but I guess that discussion belongs in #120370 - I'll comment more on it there.)

That's apply to asan,msan

`-nostdlib++ -lc++` is relevant for many ubsan tests https://lab.llvm.org/buildbot/#/builders/25/builds/5017

https://github.com/llvm/llvm-project/pull/108357


More information about the libcxx-commits mailing list