Skip to content

Commit 46849cd

Browse files
committed
macports.tcl: fix build_arch choice for ppc
1 parent f626115 commit 46849cd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/macports1.0/macports.tcl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,9 @@ match macports.conf.default."
15621562
# Default arch to build for
15631563
if {![info exists build_arch]} {
15641564
if {$os_platform eq "darwin"} {
1565-
if {$os_major >= 20} {
1565+
if {$os_arch eq "powerpc"} {
1566+
set build_arch ppc
1567+
} elseif {$os_major >= 20} {
15661568
if {$os_arch eq "arm" || (![catch {sysctl sysctl.proc_translated} translated] && $translated)} {
15671569
set build_arch arm64
15681570
} else {
@@ -1575,11 +1577,7 @@ match macports.conf.default."
15751577
set build_arch i386
15761578
}
15771579
} else {
1578-
if {$os_arch eq "powerpc"} {
1579-
set build_arch ppc
1580-
} else {
1581-
set build_arch i386
1582-
}
1580+
set build_arch i386
15831581
}
15841582
} else {
15851583
switch -glob $tcl_platform(machine) {

0 commit comments

Comments
 (0)