[clang] Add option -fstdlib-hardening= (PR #78763)

Jonathan Wakely via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 19 14:36:38 PST 2024


jwakely wrote:


> Also, @jwakely it would be nice if this worked with libstdc++ as well in the future -- it would probably turn on checks like `__GLIBCXX_ASSERT__`.

That should be `_GLIBCXX_ASSERTIONS`

No other thoughts for now. GCC has `-fhardened` now, which already defines that macro. This seems kinda redundant with it.


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


More information about the cfe-commits mailing list