From fe8e718183961d0ae4baa16922a663b330b1567a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Gonz=C3=A1lez=20Palomo?= Date: Fri, 21 Jan 2022 23:08:57 +0100 Subject: [PATCH] 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. --- src/core/os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/os.c b/src/core/os.c index bd99bc3a..77372777 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -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