[clang] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 4 07:57:52 PST 2025
================
@@ -29,7 +29,7 @@
#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) || \
defined(__Fuchsia__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__) || \
- defined(__OpenBSD__) || defined(__DragonFly__)
+ defined(__OpenBSD__) || defined(__DragonFly__) || defined(__wasm__)
----------------
sbc100 wrote:
This should probably be `__wasi__` rather than `__wasm__` since the later is the architecture, which by itself doesn't mean we have `endian.h` available.
https://github.com/llvm/llvm-project/pull/92677
More information about the llvm-commits
mailing list