mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-15 03:52:39 +00:00
The vendored Highway package was being built with libc++ even though Ghostty only uses its runtime target selection and dispatch support. That pulled in extra C++ runtime baggage from upstream support files such as abort, timer, print, and benchmark helpers. Build Highway in HWY_NO_LIBCXX mode, only compile the target dispatch sources we actually need, and compile Ghostty's SIMD translation units with the same define so the header ABI stays consistent. Replace the upstream abort implementation with a small local bridge that provides Highway's Warn/Abort hooks and the target-query shim without depending on libc++. This keeps the Highway archive down to the dispatch pieces Ghostty uses while preserving the existing dynamic dispatch behavior. The bridge is documented so it is clear why Ghostty carries this small local replacement.