Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually detect the current architecture under macOS for binaries #1924

Open
ProfFan opened this issue Jul 9, 2024 · 2 comments
Open

Actually detect the current architecture under macOS for binaries #1924

ProfFan opened this issue Jul 9, 2024 · 2 comments

Comments

@ProfFan
Copy link

ProfFan commented Jul 9, 2024

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
Copy link
Contributor

jingkaimori commented Jul 11, 2024

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

@da-liii
Copy link
Contributor

da-liii commented Jul 12, 2024

He is talking about the binary plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants