From 018c5b9ad9c29183075f5f37e4f01081002e3e98 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 22 Jun 2023 09:14:09 +0200 Subject: [PATCH] Add wasm32 and wasm64 CPU types * module/system/base/target.scm (cpu-endianness): wasm targets are little-endian. --- module/system/base/target.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/system/base/target.scm b/module/system/base/target.scm index cc4c23654..562bf7b51 100644 --- a/module/system/base/target.scm +++ b/module/system/base/target.scm @@ -84,7 +84,9 @@ (cond ((string-match "^i[0-9]86$" cpu) (endianness little)) ((member cpu '("x86_64" "ia64" - "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh3" "sh4" "alpha" "arc")) + "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" + "sh3" "sh4" "alpha" "arc" + "wasm32" "wasm64")) (endianness little)) ((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu" "mips" "mips64" "m68k" "s390x"))