
- 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
18 lines
469 B
Ruby
18 lines
469 B
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# Enables experimental `patchelf.rb` write support.
|
|
HOMEBREW_PATCHELF_RB_WRITE = (
|
|
ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].blank? &&
|
|
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? ||
|
|
(ENV["CI"].blank? && ENV["HOMEBREW_DEVELOPER"].present?))
|
|
).freeze
|
|
|
|
module Homebrew
|
|
DEFAULT_PREFIX ||= if Homebrew::EnvConfig.force_homebrew_on_linux?
|
|
HOMEBREW_DEFAULT_PREFIX
|
|
else
|
|
HOMEBREW_LINUX_DEFAULT_PREFIX
|
|
end.freeze
|
|
end
|