summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-08-19 21:48:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-08-19 21:48:16 (GMT)
commitc7706471adbd05bf2150297c58e47b27dc2d5be7 (patch)
treeb911295f32d21cc496fc2c23925d4f82f2e51a8e
parent562da42399d8ca6235ac3bc1f49e7048d27bfcb1 (diff)
downloadtcl-c7706471adbd05bf2150297c58e47b27dc2d5be7.zip
tcl-c7706471adbd05bf2150297c58e47b27dc2d5be7.tar.gz
tcl-c7706471adbd05bf2150297c58e47b27dc2d5be7.tar.bz2
Bug-fixing
-rw-r--r--library/platform/platform.tcl21
1 files changed, 5 insertions, 16 deletions
diff --git a/library/platform/platform.tcl b/library/platform/platform.tcl
index eb0e1dd..9bbc7be 100644
--- a/library/platform/platform.tcl
+++ b/library/platform/platform.tcl
@@ -184,13 +184,13 @@ proc ::platform::identify {} {
}
macos* {
set major [lindex [split $tcl_platform(osVersion) .] 0]
- incr major 1
- if {$major > 22} {
+ incr major
+ if {$major > 21} {
if {$major < 26} {
incr major -10
}
append plat $major
- } elif {$major > 20} {
+ } elseif {$major > 20} {
set minor [lindex [split $tcl_platform(osVersion) .] 1]
if {$major < 14} {
incr minor -1
@@ -373,9 +373,9 @@ proc ::platform::patterns {id} {
}
if {$v ne ""} {
- foreach {major minor} [split $v.5 .] break
+ foreach {major minor} [split $v.15 .] break
set res {}
- while {$major > 11} {
+ while {$major > 10} {
# Add $major to patterns.
lappend res macos${major}-${cpu}
foreach a $alt {
@@ -386,17 +386,6 @@ proc ::platform::patterns {id} {
set major 15
}
}
- if {$major == 11} {
- # Add 11.0 to 11.minor to patterns.
- for {set j $minor} {$j >= 0} {incr j -1} {
- lappend res macosx${major}.${j}-${cpu}
- foreach a $alt {
- lappend res macosx${major}.${j}-$a
- }
- }
- set major 10
- set minor 15
- }
# Add 10.9 to 10.minor to patterns.
for {set j $minor} {$j >= 9} {incr j -1} {
if {$cpu ne "arm"} {