Commit Graph

3 Commits

Author SHA1 Message Date
Jordan Rose
668f25aee2 Disable Apple host OS version detection on non-macOS. (#6759)
The implementation's not quite right (no objc_msgSend_stret on arm64)
and since other host OSs aren't being tested right now it's just dead
code there.

rdar://problem/29982823
2017-01-12 10:55:04 -08:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
Jordan Rose
23f25e1de7 In immediate mode, detect the host OS version on Apple platforms.
This allows script mode to pick up the current version of macOS
instead of defaulting to 10.9, making it unnecessary to write #available.
A -target flag can still override this if you're trying to write a
portable script.

The logic is a little tortured to avoid having to actually link to
Foundation.framework or libobjc.

Finishes rdar://problem/29433205.
2016-12-22 17:01:33 -08:00