[libcxx-commits] [libcxx] [libc++][NFC] Remove _LIBCPP_FREESTANDING (PR #176907)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 20 09:37:11 PST 2026


philnik777 wrote:

> > We will most likely never support `-ffreestanding`
> 
> I don't think that's correct, or at least this hasn't been officially discussed (and I certainly imagined that we would one day support it).
> 
> I'm not opposing the patch since the existence of `_LIBCPP_FREESTANDING` at the moment is somewhat confusing. However, I do oppose making a statement like we're never going to support it without having had a public discussion.
> 
> Instead, I would suggest that we document the (lack of) support for Freestanding in our documentation, making it clear what strategy we've been employing so far, but without eliminating the possibility that we'll one day support `-ffreestanding`.

This has been discussed, and there was a pretty strong consensus that we don't want `-ffreestanding`. Note that this is very different from supporting freestanding configurations. I also want to note that "most likely" is far from "will definitely never happen". Having that said, I don't really care whether it's in the commit message here or not. If you don't like it feel free to remove it.

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


More information about the libcxx-commits mailing list