https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120645

--- Comment #6 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to Pascal Pignard from comment #5)
> Shouldn't the function get it directly from macOS with sw_vers?

The current method avoids a fork and exec, and also doesn't require linking to
specific macOS frameworks (which would be the case if we used functions like
CFCopySystemVersionDictionary and kCFSystemVersionProductVersionKey).

Reply via email to