TCG: add wasm backend

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2024-08-28 10:36:46 +09:00
committed by Evan Reichard
parent 40edccac41
commit 2816a551ef
29 changed files with 3656 additions and 38 deletions
Vendored
+7 -1
View File
@@ -340,7 +340,9 @@ int main(void) { return 0; }
EOF
}
if check_define __linux__ ; then
if check_define __EMSCRIPTEN__ ; then
host_os=linux
elif check_define __linux__ ; then
host_os=linux
elif check_define _WIN32 ; then
host_os=windows
@@ -526,6 +528,10 @@ case "$cpu" in
linux_arch=x86
CPU_CFLAGS="-m64"
;;
wasm32)
host_arch=wasm32
CPU_CFLAGS="-m32"
;;
esac
# Now we have our CPU_CFLAGS we can check if we are targeting a 32 or