diff --git a/src/gmc_con.erl b/src/gmc_con.erl index 0a5a758..d3d80df 100644 --- a/src/gmc_con.erl +++ b/src/gmc_con.erl @@ -134,8 +134,13 @@ platform_dir() -> {unix, linux} -> "linux_x86_64"; {unix, darwin} -> - % TODO: Check M2 vs x86 - "mac_m2"; + case erlang:system_info(system_architecture) of + "aarch64-" ++ _ -> + "mac_m2"; + Arch -> + ok = log(info, "system_architecture: ~p", [Arch]), + "mac_x86_64" + end; {win32, nt} -> "win_x86_64" end,