You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When packages and user code make use of code like when defined(arm64),
it incorrectly reports false, and instead reports true for defined(amd64). The program usually crashes thereafter because whatever code path was needed for M1 doesn't run. (For example, the threading module using processor-specific assembly instructions based on this kind of check. )
choosenim seems to break packages and user code when installing Nim on an M1 mac (Apple silicone, ARM64) .
The issue seems to be that choosenim compiles the nim compiler as an x86 executable. Checking this, I get:
When packages and user code make use of code like
when defined(arm64)
,it incorrectly reports false, and instead reports true for
defined(amd64)
. The program usually crashes thereafter because whatever code path was needed for M1 doesn't run. (For example, the threading module using processor-specific assembly instructions based on this kind of check. )When I install nim with homebrew, and test, I get
Then things work as expected.
The text was updated successfully, but these errors were encountered: