diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-02 08:41:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-02 08:41:35 (GMT) |
commit | 00e0788723b72c953f9e8a31fdf16cad678b994b (patch) | |
tree | 88e87d7df8b980b33c42484d615a935fa0ede312 /library/platform/platform.tcl | |
parent | 2ee9e74ac6986b24ea0b224b1802a06d8bc8fe52 (diff) | |
download | tcl-00e0788723b72c953f9e8a31fdf16cad678b994b.zip tcl-00e0788723b72c953f9e8a31fdf16cad678b994b.tar.gz tcl-00e0788723b72c953f9e8a31fdf16cad678b994b.tar.bz2 |
On Big Sur, distingish 11.0, 11.1 and 11.2. platform 1.0.16 -> 1.0.17
Diffstat (limited to 'library/platform/platform.tcl')
-rw-r--r-- | library/platform/platform.tcl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/library/platform/platform.tcl b/library/platform/platform.tcl index 2c83102..e01334e 100644 --- a/library/platform/platform.tcl +++ b/library/platform/platform.tcl @@ -29,8 +29,10 @@ # are on "Windows NT" or "Windows XP" or whatever. # # Machine specific +# % amd64 -> x86_64 # % arm* -> arm # % sun4* -> sparc +# % ia32* -> ix86 # % intel -> ix86 # % i*86* -> ix86 # % Power* -> powerpc @@ -81,6 +83,7 @@ proc ::platform::generic {} { set cpu ix86 } } + ppc - "Power*" { set cpu powerpc } @@ -177,8 +180,9 @@ proc ::platform::identify {} { macosx { set major [lindex [split $tcl_platform(osVersion) .] 0] if {$major > 19} { - incr major -20 - append plat 11.$major + set minor [lindex [split $tcl_platform(osVersion) .] 1] + incr major -9 + append plat $major.[expr {$minor - 1}] } else { incr major -4 append plat 10.$major @@ -405,7 +409,7 @@ proc ::platform::patterns {id} { # ### ### ### ######### ######### ######### ## Ready -package provide platform 1.0.16 +package provide platform 1.0.17 # ### ### ### ######### ######### ######### ## Demo application |