diff --git a/upb/port/def.inc b/upb/port/def.inc index 78cb5c781eb7b..a638526059bb2 100644 --- a/upb/port/def.inc +++ b/upb/port/def.inc @@ -721,7 +721,7 @@ Error, UINTPTR_MAX is undefined __asm__(".private_extern _" #to); \ __asm__(".set _" #to ", _" #from); -#elif defined(__ELF__) +#elif defined(__ELF__) || defined(__wasm__) // On ELF, weak aliases work properly, so we can have all weak MiniTables point // to the same empty singleton MiniTable. This reduces code size if many