Skip to content

Commit d9adc91

Browse files
committed
macports.tcl: fix build_arch choice for ppc
1 parent b837e42 commit d9adc91

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
@@ -1557,7 +1557,9 @@ match macports.conf.default."
15571557
# Default arch to build for
15581558
if {![info exists build_arch]} {
15591559
if {$os_platform eq "darwin"} {
1560-
if {$os_major >= 20} {
1560+
if {$os_arch eq "powerpc"} {
1561+
set build_arch ppc
1562+
} elseif {$os_major >= 20} {
15611563
if {$os_arch eq "arm"} {
15621564
set build_arch arm64
15631565
} else {
@@ -1570,11 +1572,7 @@ match macports.conf.default."
15701572
set build_arch i386
15711573
}
15721574
} else {
1573-
if {$os_arch eq "powerpc"} {
1574-
set build_arch ppc
1575-
} else {
1576-
set build_arch i386
1577-
}
1575+
set build_arch i386
15781576
}
15791577
} else {
15801578
switch -glob $tcl_platform(machine) {

0 commit comments

Comments
 (0)