16 Commits

Author SHA1 Message Date
Bo Anderson
fba5a874fc os/mac/hardware: use Westmere on >= Ventura 2023-12-23 04:58:53 +00:00
Mike McQuaid
f30788018c
os/mac/hardware: remove TODO.
As discussed in #15938, this TODO can pretty much never be done so
doesn't make sense to leave as-is.
2023-09-02 21:36:27 -04:00
Markus Reiter
8274920217
Rename OS::Mac::Version to MacOSVersion. 2023-05-09 05:08:38 +02:00
Douglas Eichelberger
24cf6076e8 brew style --fix 2023-04-24 20:42:39 -07:00
fn ⌃ ⌥
9638e3e8c0 development_tools: update type signatures 2021-09-29 17:44:26 -07:00
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