platform::generic
platform::generic
platform::identify
platform::patterns identifier
The platform package 1.0.19 of the Tcl library, with package require platform: the system and the CPU as one identifier OS-CPU, such as linux-x86_64 or macosx-arm, from tcl_platform. identify gives the same identifier as generic. patterns gives the identifiers that a package built for an identifier can run on, ending with tcl.
This page also has platform::identify, platform::patterns.
Examples
package require platformgives1.0.19lindex [platform::patterns [platform::identify]] endgivestcl
Facts
- Capability:
package. A new interpreter does not have this command. See Limits and capabilities. - Compute cost: one compute unit for the call, and more for the commands that it runs.