Skip to content

Commit

Permalink
Default build_arch to arm64 under Rosetta 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Aug 9, 2024
1 parent d27484c commit 05cd570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macports1.0/macports.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ match macports.conf.default."
if {![info exists build_arch]} {
if {$os_platform eq "darwin"} {
if {$os_major >= 20} {
if {$os_arch eq "arm"} {
if {$os_arch eq "arm" || (![catch {sysctl sysctl.proc_translated} translated] && $translated)} {
set build_arch arm64
} else {
set build_arch x86_64
Expand Down

0 comments on commit 05cd570

Please sign in to comment.