简体   繁体   English

tcl-检测x11是否在ARM或x86上运行

[英]tcl - detect if x11 is running on ARM or x86

I have a tcl script that currently detects its platform by looking at tk windowingsystem and then loads different libraries depending on if the result is x11, win32, aqua, etc... 我有一个tcl脚本,该脚本当前通过查看tk windowingsystem来检测其平台,然后根据结果是否为x11,win32,aqua等加载不同的库...

However, this is causing issues on linux - as the libraries for raspberry pi and standard linux are different. 但是,这在linux上引起了问题-因为raspberry pi和标准linux的库是不同的。

What I'm looking for is a way to differentiate between x11 running on ARM, and x11 running on x86. 我正在寻找一种区分ARM上运行的x11和x86上运行的x11的方法。

Any suggestions? 有什么建议么?

The standard Tcl package platform sounds ideal: 标准的Tcl封装platform听起来很理想:

% package require platform
1.0.13
% platform::identify
macosx10.8-x86_64

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM