2024-08-12 10:30:59 +01:00
|
|
|
# typed: true # rubocop:todo Sorbet/StrictSigil
|
2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-08 09:39:37 -08:00
|
|
|
module SharedEnvExtension
|
|
|
|
def effective_arch
|
2020-07-28 12:58:21 +02:00
|
|
|
if @build_bottle && @bottle_arch
|
|
|
|
@bottle_arch.to_sym
|
|
|
|
elsif @build_bottle
|
2020-05-19 08:47:59 +01:00
|
|
|
Hardware.oldest_cpu
|
2024-11-12 11:34:40 -05:00
|
|
|
elsif Hardware::CPU.intel? || Hardware::CPU.arm?
|
2019-01-08 09:39:37 -08:00
|
|
|
:native
|
2024-11-12 11:34:40 -05:00
|
|
|
else
|
2024-11-16 14:44:37 -05:00
|
|
|
:dunno
|
2019-01-08 09:39:37 -08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|