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

via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 14 17:52:31 PDT 2024


================
@@ -94,7 +94,7 @@ static std::error_code getHostID(SmallVectorImpl<char> &HostID) {
   StringRef UUIDRef(UUIDStr);
   HostID.append(UUIDRef.begin(), UUIDRef.end());
 
-#elif LLVM_ON_UNIX
+#elif !defined(__wasi__)
----------------
whitequark wrote:

Thanks, this is the cause of buildbot failures that I missed during my own review.

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


More information about the cfe-commits mailing list