Jason Axelson
Jason Axelson

Reputation: 4665

How to get the current operating system architecture in Elixir?

I am trying to write code that needs the current operating system architecture, specifically it needs the same architecture that binaries are compiled with. On my system it is x86_64-unknown-linux-gnu.

Upvotes: 2

Views: 347

Answers (1)

Jason Axelson
Jason Axelson

Reputation: 4665

Found it: :erlang.system_info(:system_architecture).

Upvotes: 4

Related Questions