Add a fallback for sysctl kern.osproductversion for XNU 17 (macOS
10.13) and below, which do not provide this property.
Unfortunately, this means we have to take the detour via Darwin kernel
version again (at least for the fallback).
Paths
| Differential D84892
[Darwin][compiler-rt] kern.osproductversion unavailable pre macOS 10.13 ClosedPublic Authored by yln on Jul 29 2020, 2:57 PM.
Details Summary Add a fallback for sysctl kern.osproductversion for XNU 17 (macOS Unfortunately, this means we have to take the detour via Darwin kernel
Diff Detail
Event TimelineComment Actions LGTM
This revision is now accepted and ready to land.Jul 29 2020, 3:32 PM This revision was landed with ongoing or failed builds.Jul 29 2020, 5:22 PM Closed by commit rG44e7d4499739: [Darwin][compiler-rt] kern.osproductversion unavailable pre macOS 10.13 (authored by yln). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 281745 compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
|
clang-format not found in user's PATH; not linting file.