Module: OS::Linux::SharedEnvExtension Private

Extended by:
T::Helpers
Included in:
SharedEnvExtension
Defined in:
extend/os/linux/extend/ENV/shared.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#effective_archSymbol

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



12
13
14
15
16
17
18
19
20
21
22
# File 'extend/os/linux/extend/ENV/shared.rb', line 12

def effective_arch
  if build_bottle && (bottle_arch = self.bottle_arch)
    bottle_arch.to_sym
  elsif build_bottle
    ::Hardware.oldest_cpu
  elsif ::Hardware::CPU.intel? || ::Hardware::CPU.arm?
    :native
  else
    :dunno
  end
end