feat: support compiling to wasm32-unknown-unknown

This commit is contained in:
Amaan Qureshi 2025-09-13 05:36:32 -04:00 committed by Amaan Qureshi
parent 46ea65c89b
commit 22553b3372
20 changed files with 787 additions and 12 deletions

View file

@ -146,7 +146,7 @@ void ts_tree_print_dot_graph(const TSTree *self, int fd) {
fclose(file);
}
#elif !defined(__wasi__) // WASI doesn't support dup
#elif !defined(__wasm__) // Wasm doesn't support dup
#include <unistd.h>