Skip to content

Commit 87f5760

Browse files
committed
macports.tcl: fix build_arch choice for ppc
1 parent 9223803 commit 87f5760

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
@@ -1503,7 +1503,9 @@ match macports.conf.default."
15031503
# Default arch to build for
15041504
if {![info exists build_arch]} {
15051505
if {$os_platform eq "darwin"} {
1506-
if {$os_major >= 20} {
1506+
if {$os_arch eq "powerpc"} {
1507+
set build_arch ppc
1508+
} elseif {$os_major >= 20} {
15071509
if {$os_arch eq "arm"} {
15081510
set build_arch arm64
15091511
} else {
@@ -1516,11 +1518,7 @@ match macports.conf.default."
15161518
set build_arch i386
15171519
}
15181520
} else {
1519-
if {$os_arch eq "powerpc"} {
1520-
set build_arch ppc
1521-
} else {
1522-
set build_arch i386
1523-
}
1521+
set build_arch i386
15241522
}
15251523
} else {
15261524
switch -glob $tcl_platform(machine) {

0 commit comments

Comments
 (0)