<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch release-2.10
in repository macports-base.

</pre>
<p><a href="https://github.com/macports/macports-base/commit/14159e7ef08801b5cf4e776b79c241686b942368">https://github.com/macports/macports-base/commit/14159e7ef08801b5cf4e776b79c241686b942368</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 14159e7ef08801b5cf4e776b79c241686b942368
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat Aug 10 05:43:32 2024 +1000

<span style='display:block; white-space:pre;color:#404040;'>    Default build_arch to arm64 under Rosetta 2
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/61750
</span><span style='display:block; white-space:pre;color:#404040;'>    (cherry picked from commit 05cd570e6795f75af85f219a863d2970907443dd)
</span>---
 src/macports1.0/macports.tcl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 2130a959e..e324c2ee0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1558,7 +1558,7 @@ match macports.conf.default."
</span>     if {![info exists build_arch]} {
         if {$os_platform eq "darwin"} {
             if {$os_major >= 20} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                if {$os_arch eq "arm"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                if {$os_arch eq "arm" || (![catch {sysctl sysctl.proc_translated} translated] && $translated)} {
</span>                     set build_arch arm64
                 } else {
                     set build_arch x86_64
</pre><pre style='margin:0'>

</pre>