Merge pull request #4679 from sjackman/os-linux

Warn if os/linux is loaded on generic OS
This commit is contained in:
Mike McQuaid 2018-08-14 08:59:04 +01:00 committed by GitHub
commit 3e890c11ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,8 @@ module OS
::MacOS = self # rubocop:disable Naming/ConstantName ::MacOS = self # rubocop:disable Naming/ConstantName
raise "Loaded OS::Linux on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
def prefer_64_bit? def prefer_64_bit?
Hardware::CPU.is_64_bit? Hardware::CPU.is_64_bit?
end end