1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 08:20:27 +00:00

Add ppc64 to os/arch

Same as #431 (Add ppc to os/arch) but for the 64-bit version.
This is tested on a Power9 CPU in Little-Endian mode, on Linux.
This commit is contained in:
Alberto González Palomo 2022-01-21 23:08:57 +01:00
parent f2f421a0a2
commit fe8e718183

View File

@ -183,6 +183,8 @@ JANET_CORE_FN(os_arch,
return janet_ckeywordv("sparc");
#elif (defined(__ppc__))
return janet_ckeywordv("ppc");
#elif (defined(__ppc64__) || defined(_ARCH_PPC64) || defined(_M_PPC))
return janet_ckeywordv("ppc64");
#else
return janet_ckeywordv("unknown");
#endif