[clang] [lld] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)

James Y Knight via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 14 17:37:32 PDT 2024


================
@@ -508,6 +512,9 @@ static bool is_local_impl(struct STATVFS &Vfs) {
 #elif defined(__EMSCRIPTEN__)
   // Emscripten doesn't currently support remote filesystem mounts.
   return true;
+#elif defined(__wasi__)
----------------
jyknight wrote:

`__EMSCRIPTEN__ || __wasi__` is effectively equal `__wasm__`; merge clauses?

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


More information about the cfe-commits mailing list