Is there a way to read the current processor architecture of a BEAM instance?

For SayCheezEx - capture the environment at build time I’m trying to understand if there is a way to read the current processor architecture of a BEAM instance, e.g. arm64 or x86 or whatever. I saw a property that shows whether it is big-endian or little-endian but not the architecture / compile flags that the VM was built for.

Is this available at all? I checked the Erlang docs but could not find it.

1 Like

Try :erlang.system_info(:system_architecture)

4 Likes

Thanks!