Warn if os/linux is loaded on generic OS

This commit is contained in:
Shaun Jackman 2018-08-13 23:38:48 -07:00
parent 63c5bd96a0
commit c480dd39a9

View File

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