Co-authored-by: Alexander Bayandin <alexander@bayandin.dev>
This commit is contained in:
Nazar 2023-06-24 11:09:28 +01:00 committed by GitHub
parent 55bdbabaae
commit 521fdcb506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,8 +219,8 @@ module Hardware
# Defaults to nil. # Defaults to nil.
sig { returns(T.nilable(String)) } sig { returns(T.nilable(String)) }
def rustflags_target_cpu def rustflags_target_cpu
# Rust already defaults to the oldest supported cpu for each target-triple # Rust already defaults to the oldest supported cpu for each target-triplet
# so it's safe to ignore generic archs such as :armv6, etc., here. # so it's safe to ignore generic archs such as :armv6 here.
# Rust defaults to apple-m1 since Rust 1.71 for aarch64-apple-darwin. # Rust defaults to apple-m1 since Rust 1.71 for aarch64-apple-darwin.
@target_cpu ||= case (cpu = oldest_cpu) @target_cpu ||= case (cpu = oldest_cpu)
when :core when :core