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

CI: Github MacOS now uses ARM64. #374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

CI: Github MacOS now uses ARM64. #374

wants to merge 1 commit into from

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Apr 28, 2024

See #372

Github runners now use ARM64 instead of x86 for MacOS.

Constantine failed to compile for inline assembly when the target CPU architecture is not explicit.

This suggests that the wrong architecture (x86) was used for compiling on ARM64.

Looking at nim -v, Nim x86 was installed and used, probably transparently through Rosetta. And the x86 check at

const GCC_Compatible* = defined(gcc) or defined(clang) or defined(llvm_gcc) or defined(icc)
const X86* = defined(amd64) or defined(i386)

use the "native" compiler config.

Hence this only affects the CI, and this should be fixable with just a change to arm64.

…nstead of Nim x86 in compat mode that fails with inline ASM.
@mratsim
Copy link
Owner Author

mratsim commented Apr 28, 2024

This is pending Nim MacOS ARM nightly releases: nim-lang/nightlies#82

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

Successfully merging this pull request may close these issues.

1 participant