| 13 Feb 2026 |
Sergei Zimmerman (xokdvium) | I think glibcxx assertions are roughly second level libc++ hardening. At least that’s what meson enables with n_debug | 23:56:14 |
Sergei Zimmerman (xokdvium) | In my experience the overhead is enough to necessitate disabling hardening for some translation units that are just too hot and aren’t security sensitive | 23:57:38 |
emily | second level = fast (numeric value 2) or extensive? | 23:58:24 |
emily | because macOS upstream default is fast so we certainly wouldn't go below that OOTB | 23:58:31 |
emily | would be interesting to see if 25.05 → 25.11 regresses macOS Nix perf anyway | 23:59:07 |
emily | (but controlling for version might be hard?) | 23:59:12 |
Sergei Zimmerman (xokdvium) | In reply to @emilazy:matrix.org because macOS upstream default is fast so we certainly wouldn't go below that OOTB As in the llvm toolchain enables that by default? | 23:59:13 |
| 14 Feb 2026 |
emily | yes:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config_site
43:#define _LIBCPP_HARDENING_MODE_DEFAULT 2
| 00:00:26 |
emily | (2 is fast) | 00:00:29 |
Sergei Zimmerman (xokdvium) | In reply to @emilazy:matrix.org would be interesting to see if 25.05 → 25.11 regresses macOS Nix perf anyway Hm, I guess the only way to tell is to benchmarking :) I could see about how that would affect nix itself. Undefing the flag should be easy enough | 00:05:09 |