aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/linux.rb
blob: e5af301b2f02920aeda549f9b1b9daebe563bb8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module OS
  # Define OS::Mac on Linux for formula API compatibility.
  module Mac
    module_function

    ::MacOS = self # rubocop:disable Naming/ConstantName

    def prefer_64_bit?
      Hardware::CPU.is_64_bit?
    end

    def version
      Version::NULL
    end

    def full_version
      Version::NULL
    end

    module Xcode
      module_function

      def version
        Version::NULL
      end
    end
  end
end