# typed: true
# frozen_string_literal: true

module SharedEnvExtension
  # @private
  def effective_arch
    if @build_bottle && @bottle_arch
      @bottle_arch.to_sym
    elsif @build_bottle
      Hardware.oldest_cpu
    else
      :native
    end
  end
end
