[clang] [lld] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 14 17:37:32 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__)
----------------
jyknight wrote:
You're changing behavior for `!LLVM_ON_UNIX` (like Windows) to use this branch now. That seems probably unintended. Meant `#elif LLVM_ON_UNIX && !defined(__wasi__)`?
https://github.com/llvm/llvm-project/pull/92677
More information about the llvm-commits
mailing list