aboutsummaryrefslogtreecommitdiff
path: root/src/windows_sdk.cpp
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2021-01-11 19:52:21 -0500
committerMichael Dusan <michael.dusan@gmail.com>2021-01-11 19:54:56 -0500
commitf2be1fb23edc272c0a310a9ceb9cdff45e011d98 (patch)
tree0278f7d9f05c2d87ba1b2d10ba6e2a1309931d56 /src/windows_sdk.cpp
parent56c03881ebd8617e6506bfad01bf9cfdd4d3df7e (diff)
downloadzig-f2be1fb23edc272c0a310a9ceb9cdff45e011d98.tar.gz
zig-f2be1fb23edc272c0a310a9ceb9cdff45e011d98.zip
macos: reimplement OS version detection
The macOS version is now obtained by parsing `SystemVersion.plist`. Test cases added for plist files that date back to '2005 Panther and up to the recent '2020 Big Sur 11.1 release of macOS. Thus we are now able to reliably identify 10.3...11.1 and higher. - drop use of kern.osproductversion sysctl - drop use of kern.osversion sysctl (fallback) - drop kern.osversion tests - add `lib.std.zig.system.detect()` - add minimalistic parser for `SystemVersion.plist` - add test cases for { 10.3, 10.3.9, 10.15.6, 11.0, 11.1 } closes #7569
Diffstat (limited to 'src/windows_sdk.cpp')
0 files changed, 0 insertions, 0 deletions