35 Commits

Author SHA1 Message Date
Mike McQuaid
6d9e2d444d
Big Sur fixes
- Make missing SDKs message more clear.
- Always refer to Big Sur as 11.0 (even on Intel).
2020-07-28 16:56:55 +01: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
Shaun Jackman
6051015ac5 OS::Mac::Version: Change 11.00 to 11.0 2020-06-23 13:30:28 -07:00
Mike McQuaid
11c875d747
macOS Big Sur tweaks
- output warnings when running on ARM
- require Xcode 12
- use 11.0 as the version number
2020-06-23 14:11:05 +01:00
Misty De Meo
8d29e79f7e OS::Mac::Version: add Big Sur 2020-06-22 11:11:51 -07:00
Mike McQuaid
dd50714d1e
Fix RuboCop failures. 2020-06-22 14:09:33 +01:00
Mike McQuaid
b58fa4ebb1
Drop Mavericks support.
Companion to https://github.com/Homebrew/brew/pull/7698.

Provide better, `odeprecated` messaging for
`depends_on :macos => :mavericks` and otherwise just fix up the code
that relied on `:mavericks`.
2020-06-10 10:06:46 +01:00
Jonathan Chang
7ddc185b35 Fix various typos 2019-08-19 16:12:34 +10:00
Misty De Meo
1495cdbf8f macOS Catalina 2019-06-03 11:45:08 -07: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
1aa8ad09e2
Deprecate macOS versions below Mavericks
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00
Mike McQuaid
170c5493a4
Update deprecations
- Add some `odeprecated`
- Make some `odeprecated` now `odisabled`
- Remove `odisabled` code.
- Remove old update migrations
- Remove GCC 4.0 compiler
- Remove Tiger-only code
- Remove 32-bit-only code
- Remove use of LD64
- Remove GCC 4.3 - 4.8 support.
2019-01-08 19:13:46 +00:00
Mike McQuaid
737b84b54b
brew style --fix fixes. 2018-11-02 17:29:23 +00:00
Dominyk Tiller
0c12ab5e83
mac/version: add symbol for macOS Mojave 2018-06-04 19:44:46 +01:00
Mike McQuaid
dd75dd8a25 os/mac/version: allow leopard_64_or_later bottles. 2017-09-25 18:35:18 +01:00
Dominyk Tiller
5a9dad0bf0
mac/version: add High Sierra symbol 2017-06-05 19:40:33 +01:00
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Mike McQuaid
00f5aa81f2 os/mac/version: fix Rubocop warnings. 2016-09-11 17:49:27 +01:00
Mike McQuaid
1c46db9a73 os/mac/version: add macOS Sierra. (#353) 2016-06-13 19:20:00 +01:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Dominyk Tiller
90c8b82d38 os: initial El Capitan support 2015-06-14 18:38:55 +01:00
Jack Nagel
596f3ba0a0 Raise ArgumentError when a symbol can't be mapped to a version
The fact that this is implemented as a hash lookup is an implementation
detail, so don't let the KeyError bubble up.
2014-07-16 21:11:48 -05:00
Andy Blyler
6bbe82062e Add yosemite to mac versions
Closes Homebrew/homebrew#29823.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03 15:06:46 -05:00
Jack Nagel
d3e19b1504 Simplify MacOS.version.to_sym 2014-06-03 11:32:26 -05:00
Jack Nagel
f1808cd66d Don't coerce value to string unnecessarily 2014-06-03 11:32:26 -05:00
Jack Nagel
c13311ca09 Cache MacOS.version comparison results
MacOS.version#<=> is called many, many times during formula loading with
the same half dozen or so arguments. A typical call to this method
involves:

 * a hash lookup to convert a symbol argument to a string
 * creation of a throw-away Version object wrapping the argument
 * the actual version comparison, which is not cheap

This makes it a prime candidate to be memoized.
2014-04-02 20:29:20 -05:00
Jack Nagel
8887fe7606 Move MacOS modules under OS::Mac namespace
Closes Homebrew/homebrew#23138.
2013-10-18 13:38:07 -05:00
Jack Nagel
49c9097b07 Push MacOS.cat logic down into MacOS::Version 2013-06-15 19:40:42 -05:00
Jack Nagel
3cd1a0e696 Add MacOS::Version.from_symbol 2013-06-15 19:39:27 -05:00
Jack Nagel
e59456515d Pass these as strings, they get converted anyway 2013-06-14 19:10:14 -05:00
Adam Vandenberg
ca10e5005a Fix pretty names 2013-06-14 14:47:16 -07:00
Adam Vandenberg
8739eeab7d Move pretty_name into MacOS::Version
Closes Homebrew/homebrew#20507.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-14 13:36:20 -07:00
Misty De Meo
5d48f46178 MacOS::Version: add :tiger 2013-05-20 18:41:49 -05:00
Shaun Jackman
258d70028f Portability fixes to run Homebrew on Linux systems
Closes Homebrew/homebrew#16344.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-11 18:26:25 +00:00