XmacsLabs / mogan

Mogan STEM Suite (based on GNU TeXmacs): Enjoy exploring science and technology!
https://mogan.app
GNU General Public License v3.0
370 stars 29 forks source link

Actually detect the current architecture under macOS for binaries #1924

Open ProfFan opened 2 months ago

ProfFan commented 2 months ago

Is your feature request related to a problem? Please describe.

Sometimes we have two copies of Homebrew (one for ARM64, one for Rosetta). Currently in the code binaries are searched with both /usr/local and /opt/homebrew and this causes Intel binaries to be executed under ARM64 system.

Describe the solution you'd like

Add checks for arch and do not use the wrong path

Describe alternatives you've considered

No response

Additional context

No response

jingkaimori commented 2 months ago

Try xmake -f --arch=xxx, if problem still exists, we will report this to developer of xmake

da-liii commented 1 month ago

He is talking about the binary plugin.