Overview
| Artifact ID: | ba96498830bcb1a83766303eb15f17b4bc1aed1d6e42387f422a2dcbe5dab63d |
|---|---|
| Ticket: | a998df01f3256f79f4d7d635517130012b4001f5
Attempt to load platform package in a pkgIndex.tcl generates circular dependency error |
| User & Date: | jan.nijtmans on 2022-07-05 06:42:22 |
Changes
- icomment:
Of course, a ';' is missing, and "platform::identity" should be delayed: <pre> package require platform package ifneeded testpkg 0.1 "package require platform; \ load \[file join [list $dir] \[platform::identify\] mybinaryextension.[info sharedlibextension]\]" </pre> I wouldn't use "platform::identify", since "platform::identify" contains the OS version as well: Do you really want separate directories for MacOS 10.4, up to 12.4? Maybe "platform::generic" is better. Or $tcl_platform(os) (but that wouldn't distingish processor) or $tcl_platform(os)/$tcl_platform(machine) - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"