11 Commits

Author SHA1 Message Date
Mike McQuaid
1a41f29343
os/mac/hardware: clarify Rosetta 2 situation with a comment.
Expand on #10153 to provide an in-code comment (in case someone goes to
change this in future).
2020-12-28 09:09:08 +00:00
Francois-Xavier Coudert
201d3d2ee7 Partial revert of #10092 2020-12-26 19:37:08 +01:00
Jonathan Chang
095798be40 hardware: optimize Big Sur bottles for Ivy Bridge 2020-12-23 00:00:01 +11:00
Jonathan Chang
55dc8bbada Fix strict typecheck errors. 2020-10-29 20:39:49 +11:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Claudia
374c734d9b
Make Hardware.oldest_cpu depend on architecture
Starting with Xcode 12 Beta 2, builds that used to work on Apple Silicon
now break due to `Hardware#oldest_cpu` returning `:nehalem` [1].

This commit is the first in a series of improvements to
`Hardware#oldest_cpu`. It resolves the Xcode 12 Beta 2 issue for now.

[1]: https://github.com/Homebrew/brew/issues/7857#issuecomment-655536261
2020-07-08 20:59:10 +02:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Mike McQuaid
28fa8a7c97
version: add CPU tests.
Add a new API inspired by discussion in
https://github.com/Homebrew/homebrew-core/pull/36435 to query if a given
CPU option is supported by a version of macOS.
2019-01-28 19:31:21 +00:00
Mike McQuaid
b1e60f9c76
hardware: no special penryn CFLAGS.
These are the same as `core2` (at least for `gcc`).

Fixes #5502.
2019-01-08 19:14:29 +00:00
Mike McQuaid
a2f93fe018
hardware: tweak macOS CFLAGS.
- High Sierra and Sierra support Penryn CPUs.
- `-march` implies the relevant `-msse*` flags.
2018-12-22 11:41:49 +00:00
Mike McQuaid
04fbdce3bb
hardware: use Nehalem flags on >= Sierra.
See https://en.wikipedia.org/wiki/MacOS_Sierra#System_requirements.
2018-12-20 20:10:54 +00:00