[libc-commits] [libc] [libc] Use generic/builtin.h for Emscripten in memory utils (PR #177474)

via libc-commits libc-commits at lists.llvm.org
Fri Jan 23 06:45:35 PST 2026


google-yfyang wrote:

> Diff between [emscripten-core/emscripten#26151](https://github.com/emscripten-core/emscripten/pull/26151) and LLVM 21.1.8 has this too:
> 
> ```diff
> diff --git a/libc/src/__support/macros/properties/architectures.h b/libc/src/__support/macros/properties/architectures.h
> index c88956ff4114..817ced4e95c2 100644
> --- a/libc/src/__support/macros/properties/architectures.h
> +++ b/libc/src/__support/macros/properties/architectures.h
> @@ -41,6 +41,10 @@
>  #define LIBC_TARGET_ARCH_IS_ARM
>  #endif
> 
> +#if defined(__wasm__)
> +#define LIBC_TARGET_ARCH_IS_WASM
> +#endif
> +
>  #if defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64)
>  #define LIBC_TARGET_ARCH_IS_AARCH64
>  #endif
> ```
> 
> Should we include this here too?

This already went into the HEAD 4 months ago. https://github.com/llvm/llvm-project/blob/main/libc/src/__support/macros/properties/architectures.h. Presumably LLVM 21.1.8 isn't new enough to see this change reflected.

https://github.com/llvm/llvm-project/pull/177474


More information about the libc-commits mailing list