466 Commits

Author SHA1 Message Date
Mike McQuaid
a70d891122
os/mac/sdk: refactor for readability. 2020-11-30 16:00:31 +00:00
Misty De Meo
fec6fc4b4f
SDK: allow SDK mismatches if major version matches 2020-11-30 16:00:31 +00:00
Mike McQuaid
016893c132
os/mac/sdk: use OS::Mac.sdk_version.
This should allow the correct SDK to be found.

Fixes https://github.com/Homebrew/brew/issues/9324
2020-11-27 20:18:56 +00:00
Mike McQuaid
88ba32c519
os/mac/version: explain Big Sur to_sym logic. 2020-11-25 13:53:52 +00:00
Markus Reiter
8598b1186a Handle macOS versions >= 11.1 correctly. 2020-11-23 13:46:15 +01:00
Mike McQuaid
444c3858df
Adjust macOS version logic
- Adjust latest supported macOS logic for e.g. Big Sur 11.1.
- Updated latest supported version in docs to Mojave

Fixes https://github.com/Homebrew/brew/issues/9211
2020-11-20 16:42:52 +00:00
Mike McQuaid
3844cd6dc5
Merge pull request #9054 from fxcoudert/bigsur
macOS Big Sur
2020-11-16 12:22:34 +00:00
Markus Reiter
1b732ec7b2 Fix RuboCop offenses. 2020-11-16 02:05:29 +01:00
Rylan Polster
20ee7e8881 add Lint/DuplicateBranch cop exceptions 2020-11-16 02:02:52 +01:00
Francois-Xavier Coudert
64bc1109d1 Xcode 12.2 is released 2020-11-14 23:57:13 +01:00
Claudia Pellegrino
e945b1c42a
Merge pull request #9102 from fxcoudert/sign
keg: add codesigning
2020-11-14 08:00:01 +01:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Jonathan Chang
c602090624
Merge pull request #9123 from jonchang/xcode-12.2
xcode: update for Xcode 12.2
2020-11-13 16:55:25 +11:00
Jonathan Chang
49d2c25e2a xcode: update for Xcode 12.2 2020-11-13 15:38:24 +11:00
Mike McQuaid
5afff3f3aa
Handle macOS Homebrew on ARM
- Output `brew doctor` and `brew install` messages noting this configuration is (currently) unsupported and encourage use of Rosetta instead
- Output Rosetta 2 usage in `brew config` on ARM (whether in Rosetta 2 or not)
- Check the architecture of (newly installed) dependencies and ensure they are using the correct architecture.
- Don't allow installing macOS Intel Homebrew in macOS ARM Homebrew default prefix (and vice versa
- Actually write out the architecture of dependencies to the tab rather than generating and throwing them away
- Set and document the expected default prefix for macOS Intel Homebrew, macOS ARM Homebrew (`/opt/homebrew`) and Homebrew on Linux

While we're here:
- Don't say Big Sur is a prerelease version but still make it clear we
  don't support it (yet).
- Don't reference non-existent IRC channel
2020-11-12 17:06:47 +00:00
Francois-Xavier Coudert
4665bb8e66 keg: add codesigning 2020-11-12 09:27:07 +01:00
Jonathan Chang
ab7b757400 rubocop: fix Style/NegatedIfElseCondition 2020-11-10 23:28:31 +11:00
EricFromCanada
3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05:00
EricFromCanada
d293431b87 apidoc: update URLs 2020-11-05 23:50:55 -05:00
Jonathan Chang
c4eaa387ff mac/xcode: version bumps for Xcode 12.1 and 11.3.1 2020-10-27 21:37:04 +11:00
Markus Reiter
bf7fe45e89
Merge pull request #8896 from reitermarkus/sorbet-inline
Inline type annotations.
2020-10-13 10:40:53 +02:00
Markus Reiter
6ea9b32f70 Fix version comparison in SDK#latest_sdk. 2020-10-12 04:35:53 +02:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Markus Reiter
90d70ad932 Refactor OS::Mac::Version. 2020-10-05 15:58:17 +02:00
Jonathan Chang
7c326b55f4 os/mac: updates for Xcode 12 2020-10-03 23:53:32 +10:00
Mike McQuaid
9943b3e80a
xquartz: unprivate prefix.
This is breaking stuff:
https://github.com/Homebrew/homebrew-core/pull/61156/checks?check_run_id=1118574438#step:4:48
2020-09-15 17:24:29 +01:00
Mike McQuaid
3923d331de
Fix brew style 2020-09-15 13:39:06 +01:00
Markus Reiter
07365b9ad0 Document CLT. 2020-08-26 03:13:59 +02:00
Markus Reiter
aac0151132 Document Xcode. 2020-08-26 03:13:59 +02:00
Markus Reiter
e3d78de5f1 Document Mac::Version. 2020-08-26 03:13:59 +02:00
Markus Reiter
3efaf89787 Document SDK. 2020-08-26 03:13:59 +02:00
Markus Reiter
390deeb5ac Document MachOShim. 2020-08-26 03:13:59 +02:00
Bo Anderson
e2914ca1aa os/mac/pkgconfig/11.0/sqlite3: bump to 3.32.3 2020-08-19 13:17:02 +01:00
Markus Reiter
490e503b1b Replace Homebrew.args with Context. 2020-08-06 16:13:14 +02:00
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
Bo Anderson
9297b18aa6 Add SDK availability diagnostic 2020-07-01 16:07:14 +01:00
Mike McQuaid
85425691c4
Merge pull request #7810 from sjackman/big-sur
OS::Mac::Version: Change 11.00 to 11.0
2020-06-24 08:59:25 +01:00
Mike McQuaid
9a18c90644
Merge pull request #7811 from Bo98/pkgconfig-big-sur
os/mac/pkgconfig: add pc files for Big Sur
2020-06-24 08:59:03 +01:00
Bo Anderson
53f214835d os/mac/pkgconfig: add pc files for Big Sur 2020-06-24 02:20:13 +01:00
Bo Anderson
5d56be52ca os/mac/pkgconfig/10.15/expat: update version to 2.2.8 2020-06-24 02:09:29 +01:00
Shaun Jackman
6051015ac5 OS::Mac::Version: Change 11.00 to 11.0 2020-06-23 13:30:28 -07:00
Mike McQuaid
8a580ae39e
os/mac/xcode: add Big Sur clang versions.
https://github.com/Homebrew/brew/pull/7806#issuecomment-648154860
2020-06-23 15:54:46 +01: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
66f781821f
Merge pull request #7785 from vidusheeamoli/resolve-srb-errors
Resolve errors reported by Sorbet
2020-06-22 16:57:10 +01:00
vidusheeamoli
a919ba9ccd srb: resolve error 4012. 18 errors => 13 errors 2020-06-22 20:59:39 +05:30
Mike McQuaid
dd50714d1e
Fix RuboCop failures. 2020-06-22 14:09:33 +01:00
Bo Anderson
8c21e8b2db
Merge pull request #7705 from Bo98/xcode-11.5
os/mac/xcode: support Xcode 11.5
2020-06-20 02:25:00 +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