formula_installer: only require --build-from-source on macOS.

This commit is contained in:
Mike McQuaid 2020-12-28 08:47:05 +00:00
parent bcbf5857da
commit 07f9f6c42c
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -233,6 +233,9 @@ class FormulaInstaller
end
if Homebrew.default_prefix? && !Homebrew::EnvConfig.developer? &&
# TODO: re-enable this on Linux when we merge linuxbrew-core into
# homebrew-core and have full bottle coverage.
(OS.mac? || ENV["CI"]) &&
!build_from_source? && !build_bottle? &&
!installed_as_dependency? &&
formula.tap&.core_tap? && !formula.bottle_unneeded? && !formula.any_version_installed? &&