os/mac/diagnostic: always require dev tools on Apple Silicon
This commit is contained in:
parent
ebc7cc36a0
commit
ec3e078bcb
@ -42,8 +42,20 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
class Checks
|
class Checks
|
||||||
undef fatal_build_from_source_checks, fatal_setup_build_environment_checks,
|
undef fatal_preinstall_checks, fatal_build_from_source_checks,
|
||||||
supported_configuration_checks, build_from_source_checks
|
fatal_setup_build_environment_checks, supported_configuration_checks,
|
||||||
|
build_from_source_checks
|
||||||
|
|
||||||
|
def fatal_preinstall_checks
|
||||||
|
checks = %w[
|
||||||
|
check_access_directories
|
||||||
|
]
|
||||||
|
|
||||||
|
# We need the developer tools for `codesign`.
|
||||||
|
checks << "check_for_installed_developer_tools" if Hardware::CPU.arm?
|
||||||
|
|
||||||
|
checks.freeze
|
||||||
|
end
|
||||||
|
|
||||||
def fatal_build_from_source_checks
|
def fatal_build_from_source_checks
|
||||||
%w[
|
%w[
|
||||||
@ -405,6 +417,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_if_supported_sdk_available
|
def check_if_supported_sdk_available
|
||||||
|
return unless DevelopmentTools.installed?
|
||||||
return unless MacOS.sdk_root_needed?
|
return unless MacOS.sdk_root_needed?
|
||||||
return if MacOS.sdk
|
return if MacOS.sdk
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user