mirror of
https://github.com/janet-lang/janet
synced 2024-12-27 00:40:26 +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:
parent
f2f421a0a2
commit
fe8e718183
@ -183,6 +183,8 @@ JANET_CORE_FN(os_arch,
|
|||||||
return janet_ckeywordv("sparc");
|
return janet_ckeywordv("sparc");
|
||||||
#elif (defined(__ppc__))
|
#elif (defined(__ppc__))
|
||||||
return janet_ckeywordv("ppc");
|
return janet_ckeywordv("ppc");
|
||||||
|
#elif (defined(__ppc64__) || defined(_ARCH_PPC64) || defined(_M_PPC))
|
||||||
|
return janet_ckeywordv("ppc64");
|
||||||
#else
|
#else
|
||||||
return janet_ckeywordv("unknown");
|
return janet_ckeywordv("unknown");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user