Module: OS::Linux::SharedEnvExtension Private

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_archObject

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.



7
8
9
10
11
12
13
14
15
16
17
# File 'extend/os/linux/extend/ENV/shared.rb', line 7

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