From 65b29252affc1999b4c72236b728b848e7a732f5 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 22 Aug 2025 12:50:28 +0000 Subject: Fix handling of i386-x86_64 --- library/platform/platform.tcl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/platform/platform.tcl b/library/platform/platform.tcl index d188a5e..97bf815 100644 --- a/library/platform/platform.tcl +++ b/library/platform/platform.tcl @@ -348,13 +348,14 @@ proc ::platform::patterns {id} { # 10.5+,11.0+ if {[regexp {macosx?([^-]*)-(.*)} $id -> v cpu]} { + foreach {major minor} [split $v.15 .] break switch -exact -- $cpu { ix86 { lappend alt i386-x86_64 lappend alt universal } x86_64 { - if {[lindex [split $::tcl_platform(osVersion) .] 0] < 19} { + if {$major < 11 && $minor < 15} { set alt i386-x86_64 } else { set alt {} @@ -367,7 +368,6 @@ proc ::platform::patterns {id} { } if {$v ne ""} { - foreach {major minor} [split $v.15 .] break set res {} while {$major > 10} { # Add $major to patterns. @@ -385,6 +385,9 @@ proc ::platform::patterns {id} { if {$cpu ne "arm"} { lappend res macosx${major}.${j}-${cpu} } + if {($cpu eq "x86_64") && ($j == 14)} { + set alt i386-x86_64 + } foreach a $alt { lappend res macosx${major}.${j}-$a } -- cgit v0.12