From 64edbe6b7905c47b113c1af9cb1a2009ed57a5c7 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Fri, 6 Dec 2024 16:06:09 +0800 Subject: [PATCH] os/mac/hardware/cpu: add M4 Pro/Max Sources: - https://github.com/AsahiLinux/docs/wiki/Codenames - MacOSX15.2.sdk from Xcode 15.2 RC --- Library/Homebrew/extend/os/mac/hardware/cpu.rb | 2 ++ Library/Homebrew/test/hardware/cpu_spec.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index 8f2c80c03ab6f..05116e8d84e2c 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -129,6 +129,8 @@ def arm_family :arm_palma when 0x6f5129ac # ARMv9.2-A (M4, Donan) :arm_donan + when 0x17d5b93a # ARMv9.2-A (M4 Pro / M4 Max, Brava) + :arm_brava else # When adding new ARM CPU families, please also update # test/hardware/cpu_spec.rb to include the new families. diff --git a/Library/Homebrew/test/hardware/cpu_spec.rb b/Library/Homebrew/test/hardware/cpu_spec.rb index 8786d4bc95dfd..465d09ea53834 100644 --- a/Library/Homebrew/test/hardware/cpu_spec.rb +++ b/Library/Homebrew/test/hardware/cpu_spec.rb @@ -29,6 +29,7 @@ :amd_k12, :arm, :arm_blizzard_avalanche, + :arm_brava, :arm_donan, :arm_firestorm_icestorm, :arm_hurricane_zephyr,