mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Warn if os/linux is loaded on generic OS
This commit is contained in:
parent
63c5bd96a0
commit
c480dd39a9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user